summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-01-02 13:15:25 +0100
committerHolger Levsen <holger@layer-acht.org>2015-01-02 13:15:25 +0100
commitc45dda5f39c6893926873c930f835f3ecde412ba (patch)
tree867de4fce61ef176536cd3d319f000b2dcb5ec51
parent791adced63d4b2708a839941edf989ab5146597d (diff)
downloadjenkins.debian.net-c45dda5f39c6893926873c930f835f3ecde412ba.tar.xz
reproducible: dont display negative number of untested packages
-rwxr-xr-xbin/reproducible_common.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh
index 9e2b0ebb..759e2f34 100755
--- a/bin/reproducible_common.sh
+++ b/bin/reproducible_common.sh
@@ -388,6 +388,9 @@ gather_schedule_stats() {
SCHEDULED=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT name FROM sources_scheduled ORDER BY date_scheduled" | xargs echo)
COUNT_SCHEDULED=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT count(name) FROM sources_scheduled" | xargs echo)
let "COUNT_NOTYET=AMOUNT-COUNT_TOTAL-COUNT_SCHEDULED"
+ if [ $COUNT_NOTYET -le 0 ] ; then
+ COUNT_NOTYET=0
+ fi
QUERY=" SELECT count(sources.name) FROM sources,source_packages
WHERE sources.name NOT IN
(SELECT sources.name FROM sources,sources_scheduled