[projects/pld-builder.new: 5/7] Fix premature removal of tmpdir in install_br
draenog
draenog at pld-linux.org
Thu Dec 6 19:18:51 CET 2012
commit f0b8ac82ad84d0e178636345c1bdb092d3b298b7
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Wed Dec 5 07:35:29 2012 +0000
Fix premature removal of tmpdir in install_br
When tmpdir is removed in install_br called from build_rpm, subsequent
rpmbuild -bb in build_rpm can fail due to not existent TMPDIR directory
for %patchset macro. For example building of vim.spec fails prints
errors:
rpm: sh: can't create /home/users/builder/rpm/BUILD/vim/tmp/__ps1:
No such file or directory
rpm: sh: can't create /home/users/builder/rpm/BUILD/vim/tmp/__ps2:
No such file or directory
paste: /home/users/builder/rpm/BUILD/vim/tmp/__ps1: No such file or
directory
PLD_Builder/install.py | 1 -
1 file changed, 1 deletion(-)
---
diff --git a/PLD_Builder/install.py b/PLD_Builder/install.py
index b0fb1bf..d33f9a2 100644
--- a/PLD_Builder/install.py
+++ b/PLD_Builder/install.py
@@ -145,7 +145,6 @@ def install_br(r, b):
if m and not ignore_br.match(l):
needed[m.group('name')] = 1
f.close()
- chroot.run("rm -rf %s" % tmpdir)
return needed
needed = get_missing_br(r, b);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/c5bc3f6ddecdfa78f83c7f7fc4b8b02733831340
More information about the pld-cvs-commit
mailing list