From b7217b2fee47252c8ee083864ade33c339b5b6f3 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sat, 18 Oct 2014 22:31:02 +0200 Subject: reproducible: add emergency job to re-create all package pages. --- bin/reproducible_html_all_packages.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 bin/reproducible_html_all_packages.sh (limited to 'bin/reproducible_html_all_packages.sh') 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 +# 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} + -- cgit v1.2.3-54-g00ecf