From 9fb9feef3908b639c4dcf22809b1661f9b054f28 Mon Sep 17 00:00:00 2001
From: Holger Levsen
Date: Thu, 16 Oct 2014 10:49:23 +0200
Subject: reproducible stats: force image re-creation upon new data
---
bin/reproducible_stats.sh | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index 4a88ade0..9ee96322 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -783,6 +783,11 @@ if [ -z $RESULT ] ; then
sqlite3 -init ${INIT} ${PACKAGES_DB} "INSERT INTO ${TABLE[0]} VALUES (\"$DATE\", \"$SUITE\", $UNTESTED, $GOOD, $BAD, $UGLY, $REST)"
sqlite3 -init ${INIT} ${PACKAGES_DB} "INSERT INTO ${TABLE[1]} VALUES (\"$DATE\", \"$SUITE\", $GOOAY, $BAAY, $UGLDAY, $RESDAY)"
sqlite3 -init ${INIT} ${PACKAGES_DB} "INSERT INTO ${TABLE[2]} VALUES (\"$DATE\", \"$SUITE\", \"$DIFFG\", \"$DIFFB\", \"$DIFFU\")"
+ # FIXME: we don't do 2 / stats_builds_age.png yet :/ (also see below)
+ for i in 0 1 ; do
+ # force regeneration of the image
+ touch -d "$DATE 00:00" ${TABLE[$i]}.png
+ done
fi
# query bts
@@ -808,6 +813,8 @@ if [ -z $RESULT ] ; then
SQL="$SQL)"
echo $SQL
sqlite3 -init ${INIT} ${PACKAGES_DB} "$SQL"
+ # force regeneration of the image
+ touch -d "$DATE 00:00" ${TABLE[3]}.png
fi
# used for redo_png (but only needed to define once)
@@ -894,7 +901,7 @@ set_icon blacklisted
write_icon
write_page "$COUNT_BLACKLISTED blacklisted packages neither.
"
write_page ""
-# FIXME: we don't do 2 / stats_builds_age.png yet :/
+# FIXME: we don't do 2 / stats_builds_age.png yet :/ (also see above)
for i in 0 1 3 ; do
if [ "$i" = "3" ] ; then
write_usertag_table
--
cgit v1.2.3-70-g09d2