diff options
author | Olivier Blin <blino@mageia.org> | 2010-11-01 22:14:45 +0000 |
---|---|---|
committer | Olivier Blin <blino@mageia.org> | 2010-11-01 22:14:45 +0000 |
commit | 1332444f70cd9c715c3bb5168a3dbb5f247de158 (patch) | |
tree | 55c44abe52a2f600f45cbd5b9a13a70d748ce763 /lib | |
parent | f684aec8592a1bb3bf5fb82f6ed3cabe4eb11693 (diff) | |
download | iurt-1332444f70cd9c715c3bb5168a3dbb5f247de158.tar iurt-1332444f70cd9c715c3bb5168a3dbb5f247de158.tar.gz iurt-1332444f70cd9c715c3bb5168a3dbb5f247de158.tar.bz2 iurt-1332444f70cd9c715c3bb5168a3dbb5f247de158.tar.xz iurt-1332444f70cd9c715c3bb5168a3dbb5f247de158.zip |
no need to pre-create rpm dirs, rpm is doing it by itself nowadays
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/Chroot.pm | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index b5cb7dd..b24c800 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -554,12 +554,6 @@ sub build_chroot { # CM: Choose a sub-500 uid to prevent collison with $luser # system($sudo, 'chroot', $tmp_chroot, 'adduser', '-o', '--uid', 499, 'builder'); - sudo($run, $config, "--mkdir", "-p", "$tmp_chroot/home/builder/rpm"); - foreach my $p (qw(RPMS BUILD SPECS SRPMS SOURCES tmp)) { - -d "$tmp_chroot/home/builder/rpm/$p" and next; - sudo($run, $config, "--mkdir", "$tmp_chroot/home/builder/rpm/$p"); - } - system($sudo, 'chown', '-R', 499, "$tmp_chroot/home/builder"); # FIXME: <mrl> Be careful! Damn ugly hack right below! sudo($run, $config, "--rm", "$tmp_chroot/var/lib/rpm/__db*"); system("$sudo umount $tmp_chroot/proc &> /dev/null"); |