From 3f382518d0d6d3598026d319ec47aeda1ead4641 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 8 Sep 2015 00:35:31 +0200 Subject: reproducible: only show stats_builds_age later than 2015-08-30 for armhf --- bin/reproducible_common.sh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'bin') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index 4ef4258f..0d13a6f7 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -504,12 +504,17 @@ create_png_from_table() { if [ $1 -eq 0 ] || [ $1 -eq 2 ] ; then # TABLE[0+2] have a architecture column: WHERE_EXTRA="$WHERE_EXTRA AND architecture = \"$ARCH\"" + if [ $1 -eq 2 ] && [ "$ARCH" = "armhf" ] ; then + # armhf was only build since 2015-08-31 + WHERE_EXTRA="$WHERE_EXTRA AND datum >= '2015-08-31'" + fi fi # run query if [ $1 -eq 1 ] ; then # not sure if it's worth to generate the following query... WHERE_EXTRA="AND architecture='$ARCH'" if [ "$ARCH" = "armhf" ] ; then + # armhf was only build since 2015-08-31 WHERE2_EXTRA="WHERE s.datum >= '2015-08-31'" fi sqlite3 -init ${INIT} --nullvalue 0 -csv ${PACKAGES_DB} "SELECT s.datum, -- cgit v1.2.3-70-g09d2