[projects/pld-builder.new] print rpm changelog when building it (includes git hash)

glen glen at pld-linux.org
Tue Jul 22 09:12:45 CEST 2014


commit a4f5a4481873f19a1381e5bd38d2294c62d3a721
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Jul 22 10:12:42 2014 +0300

    print rpm changelog when building it (includes git hash)

 PLD_Builder/rpm_builder.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/PLD_Builder/rpm_builder.py b/PLD_Builder/rpm_builder.py
index 8dd949f..c816db4 100644
--- a/PLD_Builder/rpm_builder.py
+++ b/PLD_Builder/rpm_builder.py
@@ -185,6 +185,7 @@ def build_rpm(r, b):
     res = chroot.run("""
         set -ex;
         install -d %(topdir)s/{BUILD,RPMS};
+        rpm -qp --changelog %(src_rpm)s;
         rpm -Uhv --nodeps %(rpmdefs)s %(src_rpm)s;
         rm -f %(src_rpm)s;
     """ % {
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list