summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-01 12:31:29 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-01 12:31:46 +0100
commitb8c7827d8b3aef13816b286b6eda5acc502990a8 (patch)
treee8c4203d7d1315d84e6a9e2a46a72f1fa6418d31 /bin
parent823cfdefc33e2271e35980c6ff85a6983911ad37 (diff)
downloadjenkins.debian.net-b8c7827d8b3aef13816b286b6eda5acc502990a8.tar.xz
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)
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_scheduler.sh17
1 files changed, 16 insertions, 1 deletions
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