summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-18 22:31:02 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-18 22:49:57 +0200
commitb7217b2fee47252c8ee083864ade33c339b5b6f3 (patch)
tree02c9df9aa9fa523d8828a327f82a8a6053e18a93 /bin
parent5fc4283114576ca40508b4fd220d31dff3c5ab1c (diff)
downloadjenkins.debian.net-b7217b2fee47252c8ee083864ade33c339b5b6f3.tar.xz
reproducible: add emergency job to re-create all package pages.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_html_all_packages.sh24
1 files changed, 24 insertions, 0 deletions
diff --git a/bin/reproducible_html_all_packages.sh b/bin/reproducible_html_all_packages.sh
new file mode 100755
index 00000000..1b98c089
--- /dev/null
+++ b/bin/reproducible_html_all_packages.sh
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+# Copyright 2014 Holger Levsen <holger@layer-acht.org>
+# released under the GPLv=2
+
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
+# common code defining db access
+. /srv/jenkins/bin/reproducible_common.sh
+
+set +x
+init_html
+
+#
+# attempt to rebuild all package pages
+# (will only happen if they don't exist or are older than build date.)
+# (should never be needed)
+#
+PACKAGES=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM source_packages WHERE status != \"\"")
+COUNT_TOTAL=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status != \"\"")
+echo "$(date) - processing $COUNT_TOTAL packages... this will take a while."
+process_packages ${PACKAGES}
+