]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Install tmpdir only once in tmpdir()
authorKacper Kornet <draenog@pld-linux.org>
Thu, 6 Dec 2012 16:04:18 +0000 (16:04 +0000)
committerKacper Kornet <draenog@pld-linux.org>
Thu, 6 Dec 2012 18:17:18 +0000 (18:17 +0000)
PLD_Builder/install.py
PLD_Builder/rpm_builder.py

index d33f9a256773225144ab1abad1338b3672004b89..a21da2b632c64d19b82d55bc9ac51cd5511b5a35 100644 (file)
@@ -128,7 +128,6 @@ def install_br(r, b):
         ignore_br = re.compile(r'^\s*(rpmlib|cpuinfo|getconf|uname|soname|user|group|mounted|diskspace|digest|gnupg|macro|envvar|running|sanitycheck|vcheck|signature|verify|exists|executable|readable|writable)\(.*')
 
         tmpdir = b.tmpdir()
-        chroot.run("install -m 700 -d %s" % tmpdir)
         cmd = "set -e; TMPDIR=%(tmpdir)s rpmbuild --nobuild %(rpmdefs)s %(topdir)s/%(spec)s 2>&1" % {
             'tmpdir': tmpdir,
             'topdir' : b._topdir,
index 570d68f98f25ee5af67a93f5427558e3cf20d1d2..6cb20add2a66022f68a26a1336ee436a94970b0e 100644 (file)
@@ -195,8 +195,6 @@ def build_rpm(r, b):
         res = "FAIL_SRPM_INSTALL"
     else:
         prepare_env()
-        chroot.run("install -m 700 -d %s" % tmpdir)
-
         b.default_target(config.arch)
         # check for build arch before filling BR
         cmd = "set -ex; TMPDIR=%(tmpdir)s exec nice -n %(nice)s " \
This page took 0.174571 seconds and 4 git commands to generate.