aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-01 22:57:10 +0000
committerOlivier Blin <blino@mageia.org>2010-11-01 22:57:10 +0000
commit4faffe3f27f295787b446bbfd5ad65725962a88b (patch)
treeaefab05a8086769a4895dd61fab7637345346fc5 /lib
parent15d5f7d66373cb8962262a0cd367bed3766b72ad (diff)
downloadiurt-4faffe3f27f295787b446bbfd5ad65725962a88b.tar
iurt-4faffe3f27f295787b446bbfd5ad65725962a88b.tar.gz
iurt-4faffe3f27f295787b446bbfd5ad65725962a88b.tar.bz2
iurt-4faffe3f27f295787b446bbfd5ad65725962a88b.tar.xz
iurt-4faffe3f27f295787b446bbfd5ad65725962a88b.zip
use rpm --root instead of chroot rpm
Diffstat (limited to 'lib')
-rw-r--r--lib/Iurt/Chroot.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm
index 973f001..3c539f4 100644
--- a/lib/Iurt/Chroot.pm
+++ b/lib/Iurt/Chroot.pm
@@ -549,7 +549,10 @@ sub build_chroot {
sudo($run, $config, "--rm", "$tmp_chroot/etc/urpmi/urpmi.cfg");
sudo($run, $config, "--rm", "$tmp_chroot/var/lib/urpmi/*");
- system($sudo, 'sh', '-c', "chroot $tmp_chroot rpm -qa --qf '\%{NAME}-\%{VERSION}-\%{RELEASE}.\%{ARCH}.rpm\n' | sort > $tmp_chroot/var/log/qa");
+ system("rpm -qa --root $tmp_chroot --qf '\%{NAME}-\%{VERSION}-\%{RELEASE}.\%{ARCH}.rpm\n' | sort > $tmp_chroot/tmp/qa");
+ sudo($run, $config, "--cp", "$tmp_chroot/tmp/qa", "$tmp_chroot/var/log/qa");
+ unlink("$tmp_chroot/tmp/qa");
+
#
# CM: Choose a sub-500 uid to prevent collison with $luser
#