aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Urpmi.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r--lib/Iurt/Urpmi.pm2
1 files changed, 1 insertions, 1 deletions
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 {