diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-04 22:07:04 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-04 22:07:04 +0000 |
commit | 0eb248e1b1aa3b31a4c5b2ac0f2750c1aabae808 (patch) | |
tree | 573ee97f6132bf91d0f87d2b7bfc95772583b9f0 /lib/Iurt/Urpmi.pm | |
parent | fddb01e4b1225adfb9adeb6f9e8b6032170c68ce (diff) | |
download | iurt-0eb248e1b1aa3b31a4c5b2ac0f2750c1aabae808.tar iurt-0eb248e1b1aa3b31a4c5b2ac0f2750c1aabae808.tar.gz iurt-0eb248e1b1aa3b31a4c5b2ac0f2750c1aabae808.tar.bz2 iurt-0eb248e1b1aa3b31a4c5b2ac0f2750c1aabae808.tar.xz iurt-0eb248e1b1aa3b31a4c5b2ac0f2750c1aabae808.zip |
use rpm --root instead of sudo chroot rpm
Diffstat (limited to 'lib/Iurt/Urpmi.pm')
-rw-r--r-- | lib/Iurt/Urpmi.pm | 2 |
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 { |