From 0eb248e1b1aa3b31a4c5b2ac0f2750c1aabae808 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Thu, 4 Nov 2010 22:07:04 +0000 Subject: use rpm --root instead of sudo chroot rpm --- lib/Iurt/Urpmi.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/Iurt') diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index 83d2d23..86b5090 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -417,7 +417,7 @@ sub install_packages_old { sub are_installed { my ($chroot, @pkgs) = @_; @pkgs = map { -f "$chroot$_" && `rpm -qp --qf %{name} $chroot$_` || $_ } @pkgs; - system("sudo chroot $chroot rpm -q @pkgs") == 0; + system("rpm -q --root $chroot @pkgs") == 0; } sub install_packages { -- cgit v1.2.1