diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-05 02:15:09 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-05 02:15:09 +0200 |
commit | ff0d8d849527bec10a37bac361cc7b5d3e31ac47 (patch) | |
tree | fb99676c00409463ec37964b374ecf515a1c9675 /bin/reproducible_stats.sh | |
parent | 2d2f11d5f675244a688770e1312045839636b75f (diff) | |
download | jenkins.debian.net-ff0d8d849527bec10a37bac361cc7b5d3e31ac47.tar.xz |
reproducible: move db creation to _setup.sh
Diffstat (limited to 'bin/reproducible_stats.sh')
-rwxr-xr-x | bin/reproducible_stats.sh | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index b716685f..52f72905 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -7,16 +7,13 @@ common_init "$@" set +x +# define db PACKAGES_DB=/var/lib/jenkins/reproducible.db +INIT=/var/lib/jenkins/reproducible.init if [ ! -f $PACKAGES_DB ] ; then echo "$PACKAGES_DB doesn't exist, no stats possible." exit 1 fi -# 30 seconds timeout when trying to get a lock -INIT=/var/lib/jenkins/reproducible.init -cat >/var/lib/jenkins/reproducible.init <<-EOF -.timeout 30000 -EOF SUITE=sid AMOUNT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT amount FROM source_stats WHERE suite = \"$SUITE\"" | xargs echo) |