summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-09-28 11:05:16 +0200
committerHolger Levsen <holger@layer-acht.org>2014-09-28 11:05:16 +0200
commit7a6eee49d49db578d68629c75db43b78fc0381c1 (patch)
treecad87bf213437565cc3721a7adbc00cec6cd334a /bin
parentfce8533274fb0ef54d0e9baf1d0ccb8bf3c17181 (diff)
downloadjenkins.debian.net-7a6eee49d49db578d68629c75db43b78fc0381c1.tar.xz
reproducible: polish
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_build.sh3
-rwxr-xr-xbin/reproducible_stats.sh9
2 files changed, 8 insertions, 4 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh
index 30f4feb4..15ff056a 100755
--- a/bin/reproducible_build.sh
+++ b/bin/reproducible_build.sh
@@ -42,6 +42,7 @@ if [[ $1 =~ ^-?[0-9]+$ ]] ; then
rm $TMPFILE
else
PACKAGES="$@"
+ AMOUNT="${#@}"
fi
set +x
echo
@@ -124,7 +125,7 @@ for SRCPACKAGE in $PACKAGES ; do
set +x
echo "=============================================================="
- echo "$COUNT_TOTAL of ${#PACKAGES} done."
+ echo "$COUNT_TOTAL of $AMOUNT done."
echo "=============================================================="
set -x
done
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index 07e7e03f..a56e4526 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -3,6 +3,9 @@
# Copyright 2014 Holger Levsen <holger@layer-acht.org>
# released under the GPLv=2
+. /srv/jenkins/bin/common-functions.sh
+common_init "$@"
+
set +x
PACKAGES_DB=/var/lib/jenkins/reproducible.db
if [ ! -f $PACKAGES_DB ] ; then
@@ -12,11 +15,11 @@ fi
GOOD=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"reproducible\" ORDER BY name" | xargs echo)
COUNT_GOOD=$(sqlite3 $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"reproducible\"")
-BAD=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"unreproducible\" ORDER BY build_date" | xargs echo)
+BAD=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"unreproducible\" ORDER BY build_date DESC" | xargs echo)
COUNT_BAD=$(sqlite3 $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"unreproducible\"")
-UGLY=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"FTBFS\" ORDER BY build_date" | xargs echo)
+UGLY=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"FTBFS\" ORDER BY build_date DESC" | xargs echo)
COUNT_UGLY=$(sqlite3 $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"FTBFS\"")
-SOURCELESS=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"404\" ORDER BY build_date" | xargs echo)
+SOURCELESS=$(sqlite3 $PACKAGES_DB "SELECT name FROM source_packages WHERE status = \"404\" ORDER BY build_date DESC" | xargs echo)
COUNT_SOURCELESS=$(sqlite3 $PACKAGES_DB "SELECT COUNT(name) FROM source_packages WHERE status = \"404\"" | xargs echo)
COUNT_TOTAL=$(sqlite3 $PACKAGES_DB "SELECT COUNT(name) FROM source_packages")