From b8c7827d8b3aef13816b286b6eda5acc502990a8 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 1 Jan 2015 12:31:29 +0100 Subject: reproducible: only re-schedule old packages without .buildinfo files 'for now' (=until there are no more, see http://lists.alioth.debian.org/pipermail/reproducible-builds/Week-of-Mon-20141229/000607.html) --- bin/reproducible_scheduler.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/reproducible_scheduler.sh b/bin/reproducible_scheduler.sh index 84662197..19b43368 100755 --- a/bin/reproducible_scheduler.sh +++ b/bin/reproducible_scheduler.sh @@ -147,6 +147,17 @@ schedule_packages() { echo } +deselect_old_with_buildinfo() { + PACKAGES="" + for PKG in $1 do ; + if [ ! -f /var/lib/jenkins/userContent/buildinfo/${PKG}_.buildinfo ] ; then + PACKAGES="$PACKAGES $PKG" + else + let "AMOUNT=$AMOUNT-1" + fi + done +} + # # main # @@ -204,10 +215,14 @@ else fi echo "Requesting $OLD old packages..." select_old_versions $OLD +echo -n "Found $AMOUNT old packages, " +deselect_old_with_buildinfo $PACKAGES +echo "kept $AMOUNT old packages without .buildinfo files." + let "TOTAL=$TOTAL+$AMOUNT" echo "So in total now $TOTAL packages about to be scheduled." ALL_PACKAGES="$ALL_PACKAGES $PACKAGES" -MESSAGE="$MESSAGE and $AMOUNT packages with the same version again, for a total of $TOTAL scheduled packages." +MESSAGE="$MESSAGE and $AMOUNT packages with the same version (but without .buildinfo files) again, for a total of $TOTAL scheduled packages." # finally schedule_packages -- cgit v1.2.3-54-g00ecf