diff options
author | Pascal Terjan <pterjan@mageia.org> | 2012-04-03 22:12:10 +0000 |
---|---|---|
committer | Pascal Terjan <pterjan@mageia.org> | 2012-04-03 22:12:10 +0000 |
commit | c68c869e126064f93468be2fdbfa32a2004260ca (patch) | |
tree | 8fc6d72d08e83a42846a4646315dc60eb8fed095 /lib/Iurt | |
parent | a44d50bf39d0594acd0fb9334263953d2600b7ef (diff) | |
download | iurt-c68c869e126064f93468be2fdbfa32a2004260ca.tar iurt-c68c869e126064f93468be2fdbfa32a2004260ca.tar.gz iurt-c68c869e126064f93468be2fdbfa32a2004260ca.tar.bz2 iurt-c68c869e126064f93468be2fdbfa32a2004260ca.tar.xz iurt-c68c869e126064f93468be2fdbfa32a2004260ca.zip |
Add a comment
Diffstat (limited to 'lib/Iurt')
-rw-r--r-- | lib/Iurt/Chroot.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 6e9184a..5912e87 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -384,6 +384,7 @@ sub build_chroot { sudo($config, "--rm", "$tmp_chroot/etc/urpmi/urpmi.cfg"); sudo($config, "--rm", "$tmp_chroot/var/lib/urpmi/*"); + # rpm is not running as root and cannot directly write to $tmp_chroot/var/log/qa system("rpm -qa --root $tmp_chroot --qf '\%{NAME}-\%{VERSION}-\%{RELEASE}.\%{ARCH}\n' | sort > $tmp_chroot/tmp/qa"); sudo($config, "--cp", "$tmp_chroot/tmp/qa", "$tmp_chroot/var/log/qa"); unlink("$tmp_chroot/tmp/qa"); |