[projects/pld-builder.new/new-builddir-new: 19/21] remove whole topdir (as it's build specific)
draenog
draenog at pld-linux.org
Mon Oct 29 11:58:35 CET 2012
commit 33eb8ba792487ac9fc09b4b54ddc8b11ac7eddce
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Oct 27 16:28:44 2012 +0200
remove whole topdir (as it's build specific)
PLD_Builder/rpm_builder.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 7235268..81263bd 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -252,15 +252,10 @@ def build_rpm(r, b):
chroot.run("""
set -ex;
- rpmbuild --nodeps --nobuild --clean --rmspec --rmsource %(rpmdefs)s %(topdir)s/%(spec)s;
- rm -rf %(tmpdir)s;
chmod -R u+rwX %(topdir)s/BUILD;
- rm -rf %(topdir)s/BUILD;
+ rm -rf %(topdir)s;
""" % {
- 'tmpdir' : tmpdir,
- 'spec': b.spec,
'topdir' : b._topdir,
- 'rpmdefs' : b.rpmbuild_opts()
}, logfile = b.logfile)
def ll(l):
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/6fbf8d5befabd83f4260bf17d230d8b32ec42ec2
More information about the pld-cvs-commit
mailing list