summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_build.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-08 11:49:21 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-08 11:49:21 +0200
commit430708e79557eb9cb83b051019a62e6c32a6b89c (patch)
treefc6f07cd2eb5389d60f50cd3b0efaa6404d19475 /bin/reproducible_build.sh
parent78a65c6335b43464227448c73742afe4828686f7 (diff)
downloadjenkins.debian.net-430708e79557eb9cb83b051019a62e6c32a6b89c.tar.xz
reproducible: don't schedule new versions of blacklisted packages
Diffstat (limited to 'bin/reproducible_build.sh')
-rwxr-xr-xbin/reproducible_build.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index e2e6df1e..2d34581f 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -57,7 +57,8 @@ if [ $1 = "unknown" ] ; then
elif [ $1 = "known" ] ; then
update_sources_table
AMOUNT=$2
- PACKAGES=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT DISTINCT source_packages.name FROM source_packages,sources WHERE sources.version IN (SELECT version FROM sources WHERE name=source_packages.name ORDER by sources.version DESC LIMIT 1) AND (( source_packages.status = 'unreproducible' OR source_packages.status = 'FTBFS') AND source_packages.name = sources.name AND source_packages.version < sources.version) ORDER BY source_packages.build_date LIMIT $AMOUNT" | xargs -r echo)
+ # FIXME: blacklisted is a valid status in the db which should be used...
+ PACKAGES=$(sqlite3 -init $INIT ${PACKAGES_DB} "SELECT DISTINCT source_packages.name FROM source_packages,sources WHERE sources.version IN (SELECT version FROM sources WHERE name=source_packages.name ORDER by sources.version DESC LIMIT 1) AND (( source_packages.status = 'unreproducible' OR source_packages.status = 'FTBFS') AND source_packages.name = sources.name AND source_packages.version < sources.version) ORDER BY source_packages.build_date LIMIT $AMOUNT" | egrep -v "^(linux|cups|zurl|openclipart)$" | xargs -r echo)
else
# CANDIDATES is defined in that file
. /srv/jenkins/bin/reproducible_candidates.sh
@@ -69,6 +70,7 @@ else
continue
fi
PKG=${CANDIDATES[$i]}
+ # FIXME: blacklisted is a valid status in the db which should be used...
RESULT=$(sqlite3 ${PACKAGES_DB} "SELECT name FROM source_packages WHERE name = \"${PKG}\"")
if [ "$RESULT" = "" ] ; then
PACKAGES="${PACKAGES} $PKG"