summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-12-20 16:08:58 +0100
committerHolger Levsen <holger@layer-acht.org>2015-12-20 16:08:58 +0100
commitb8a11bfdd88d3b073fd9c03a8aa41f65ea097739 (patch)
treeb1341b58598128a5a5ec497deaf2dc5d76841178
parentaac9b56aa15ec1f7a627e5f8e888a7ae69c85049 (diff)
downloadjenkins.debian.net-b8a11bfdd88d3b073fd9c03a8aa41f65ea097739.tar.xz
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…)
-rwxr-xr-xbin/reproducible_build_rpm.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_build_rpm.sh b/bin/reproducible_build_rpm.sh
index 681500e5..2010f46f 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."