[Qa-jenkins-scm] [jenkins.debian.net] 01/01: reproducible fedora rpms: use correct source names (so we dont build them several times which is a pain for this 1.5G sized source package, esp. if that is build several times…)

Holger Levsen holger at moszumanska.debian.org
Sun Dec 20 15:09:24 UTC 2015


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit b8a11bfdd88d3b073fd9c03a8aa41f65ea097739
Author: Holger Levsen <holger at layer-acht.org>
Date:   Sun Dec 20 16:08:58 2015 +0100

    reproducible fedora rpms: use correct source names (so we dont build them several times which is a pain for this 1.5G sized source package, esp. if that is build several times…)
---
 bin/reproducible_build_rpm.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh
index 681500e..2010f46 100755
--- a/bin/reproducible_build_rpm.sh
+++ b/bin/reproducible_build_rpm.sh
@@ -66,7 +66,10 @@ choose_package() {
 		SEARCHTERMS="apache2 awesome bash fedora firefox gcc gnome gnu gpg ipa kde linux mock openssl pgp redhat rpm ssh system-config systemd xfce xorg yum"
 		echo "$(date -u ) - for now, instead of building everything, only packages matching these searchterms are build: $SEARCHTERMS"
 		local i=""
-		( for i in $SEARCHTERMS ; do repoquery --qf "%{name}" "*$i*" ; done ) | sort -u > ${RPM_PKGS}_$RELEASE
+		# http://fedoraproject.org/wiki/Packaging:NamingGuidelines describes the rpm naming scheme
+		# the awk command removes the last two "columns" seperated by "-"
+		# so system-config-printer-1.5.7-5.fc23.src.rpm becomes system-config-printer
+		( for i in $SEARCHTERMS ; do repoquery --qf "%{sourcerpm}" "*$i*" | awk 'NF{NF-=2}1' FS='-' OFS='-' ; done ) | sort -u > ${RPM_PKGS}_$RELEASE
 		cat ${RPM_PKGS}_$RELEASE
 	fi
 	echo "$(date -u ) - choosing package to be build."

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list