summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-09-10 19:26:31 +0200
committerHolger Levsen <holger@layer-acht.org>2015-09-10 19:26:31 +0200
commit8b019f24b09f9594c9e63e9cf6d6471a60702136 (patch)
treea6f9b6b330a36c9830febd13b1675f50702289dd
parentf411e67edd2803b8f5bafe111d326a3a9d71eba5 (diff)
downloadjenkins.debian.net-8b019f24b09f9594c9e63e9cf6d6471a60702136.tar.xz
fixup SQL in f411e67e: reproducible: build: requeue a package for building in case of outdated builder and exit cleanly
-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 3453d319..7d494e47 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -599,7 +599,7 @@ build_rebuild() {
if [ ! -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] && [ -f b1/${SRCPACKAGE}_*_${ARCH}.changes ] ; then
echo "Version mismatch between main node (${SRCPACKAGE}_${EVERSION}_${ARCH}.dsc expected) and first build node ($(ls b1/*dsc)) for $SUITE/$ARCH, aborting. Please upgrade the schroots..." | tee -a ${RBUILDLOG}
# reschedule the package for later and quit the build without saving anything
- sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='' builder='' date_scheduled='$(date -u)' WHERE package_id='$SRCPKGID'"
+ sqlite3 -init $INIT ${PACKAGES_DB} "UPDATE schedule SET date_build_started='', builder='', date_scheduled='$(date +'%Y-%m-%d %H:%M')' WHERE package_id='$SRCPKGID'"
NOTIFY=""
exit 0
elif [ -f b1/${SRCPACKAGE}_${EVERSION}_${ARCH}.changes ] ; then