summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_maintainance.sh
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-02-15 17:47:25 +0100
committerHolger Levsen <holger@layer-acht.org>2015-02-15 17:47:25 +0100
commita9fb9c925b3dfdb9c0c359b5fe22e69c750b8fba (patch)
treec7c2e3e533aaa0fe0849f8b36d09b21d850cd62e /bin/reproducible_maintainance.sh
parent3f39981c1ef96e290b78bc0168f7e10abd19f87d (diff)
downloadjenkins.debian.net-a9fb9c925b3dfdb9c0c359b5fe22e69c750b8fba.tar.xz
reproducible: warn if packages were scheduled more than 36h ago
Diffstat (limited to 'bin/reproducible_maintainance.sh')
-rwxr-xr-xbin/reproducible_maintainance.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/reproducible_maintainance.sh b/bin/reproducible_maintainance.sh
index 87ce245f..8be802bd 100755
--- a/bin/reproducible_maintainance.sh
+++ b/bin/reproducible_maintainance.sh
@@ -85,14 +85,14 @@ QUERY="
SELECT * FROM sources_scheduled
WHERE date_scheduled != ''
AND date_build_started != ''
- AND date_build_started < datetime('now', '-1 day')
+ AND date_build_started < datetime('now', '-36 hours')
ORDER BY date_scheduled
"
PACKAGES=$(mktemp)
sqlite3 -init $INIT ${PACKAGES_DB} "$QUERY" > $PACKAGES 2> /dev/null || echo "Warning: SQL query '$QUERY' failed."
if grep -q '|' $PACKAGES ; then
echo
- echo "Warning: packages found where the build was started more than 24h ago:"
+ echo "Warning: packages found where the build was started more than 36h ago:"
echo "name|date_scheduled|date_build_started"
echo
cat $PACKAGES