From 1332444f70cd9c715c3bb5168a3dbb5f247de158 Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 1 Nov 2010 22:14:45 +0000 Subject: no need to pre-create rpm dirs, rpm is doing it by itself nowadays --- lib/Iurt/Chroot.pm | 6 ------ 1 file changed, 6 deletions(-) (limited to 'lib') 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: 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"); -- cgit v1.2.1