summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-30 17:59:02 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-30 17:59:02 +0200
commit975293b4fcbd99d2a4642746833b2a45b8b7c77a (patch)
treef7798f5373ea6688570dc73bd2ceba2116c1ee4e
parent90316bb26d707bd5185093d62d3a3a6dc10a2b51 (diff)
downloadjenkins.debian.net-975293b4fcbd99d2a4642746833b2a45b8b7c77a.tar.xz
fix version detection
-rwxr-xr-xbin/reproducible_build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index c8bedafc..6f7f6bbf 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -159,7 +159,7 @@ for SRCPACKAGE in ${PACKAGES} ; do
echo "Warning: ${SRCPACKAGE} is not a source package, or was removed or renamed. Please investigate."
continue
else
- VERSION=$(grep "^Version: " ${SRCPACKAGE}_*.dsc| sort -r | head -1 | cut -d ":" -f2-)
+ VERSION=$(grep "^Version: " ${SRCPACKAGE}_*.dsc| grep -v "GnuPG v" | sort -r | head -1 | cut -d ":" -f2-)
ARCH=$(grep "^Architecture: " ${SRCPACKAGE}_*.dsc| sort -r | head -1 | cut -d ":" -f2)
if [[ ! "$ARCH" =~ "amd64" ]] && [[ ! "$ARCH" =~ "all" ]] && [[ ! "$ARCH" =~ "any" ]] ; then
sqlite3 -init $INIT ${PACKAGES_DB} "REPLACE INTO source_packages VALUES (\"${SRCPACKAGE}\", \"${VERSION}\", \"not for us\", \"$DATE\", \"\")"