[projects/pld-builder.new: 7/7] Install tmpdir only once in tmpdir()

draenog draenog at pld-linux.org
Thu Dec 6 19:19:01 CET 2012


commit c5bc3f6ddecdfa78f83c7f7fc4b8b02733831340
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Thu Dec 6 16:04:18 2012 +0000

    Install tmpdir only once in tmpdir()

 PLD_Builder/install.py     | 1 -
 PLD_Builder/rpm_builder.py | 2 --
 2 files changed, 3 deletions(-)
---
diff --git a/PLD_Builder/install.py b/PLD_Builder/install.py
index d33f9a2..a21da2b 100644
--- a/PLD_Builder/install.py
+++ b/PLD_Builder/install.py
@@ -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,
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 570d68f..6cb20ad 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -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 " \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/c5bc3f6ddecdfa78f83c7f7fc4b8b02733831340



More information about the pld-cvs-commit mailing list