diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-18 22:31:02 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-18 22:49:57 +0200 |
commit | b7217b2fee47252c8ee083864ade33c339b5b6f3 (patch) | |
tree | 02c9df9aa9fa523d8828a327f82a8a6053e18a93 /bin | |
parent | 5fc4283114576ca40508b4fd220d31dff3c5ab1c (diff) | |
download | jenkins.debian.net-b7217b2fee47252c8ee083864ade33c339b5b6f3.tar.xz |
reproducible: add emergency job to re-create all package pages.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_html_all_packages.sh | 24 |
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} + |