[projects/pld-builder.new/new-builddir] remove whole topdir (as it's build specific)

glen glen at pld-linux.org
Sat Oct 27 16:34:47 CEST 2012


commit 5d7db3fd394b66182ffbbe95e5088a66caea96b6
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/0cfedb45f97cdfe0542e01e3564e75f60362e1e1



More information about the pld-cvs-commit mailing list