aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorOlivier Blin <blino@mageia.org>2010-11-01 22:14:45 +0000
committerOlivier Blin <blino@mageia.org>2010-11-01 22:14:45 +0000
commit1332444f70cd9c715c3bb5168a3dbb5f247de158 (patch)
tree55c44abe52a2f600f45cbd5b9a13a70d748ce763 /lib
parentf684aec8592a1bb3bf5fb82f6ed3cabe4eb11693 (diff)
downloadiurt-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.pm6
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");