summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/reproducible_stats.sh29
-rw-r--r--userContent/static/error.pngbin925 -> 653 bytes
-rw-r--r--userContent/static/weather-clear.pngbin952 -> 682 bytes
-rw-r--r--userContent/static/weather-few-clouds-night.pngbin1211 -> 965 bytes
-rw-r--r--userContent/static/weather-severe-alert.pngbin1537 -> 977 bytes
-rw-r--r--userContent/static/weather-showers-scattered.pngbin1667 -> 1045 bytes
-rw-r--r--userContent/static/weather-showers.pngbin1528 -> 959 bytes
-rw-r--r--userContent/static/weather-storm.pngbin1593 -> 1031 bytes
8 files changed, 24 insertions, 5 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh
index b30bfa2b..4ad224e9 100755
--- a/bin/reproducible_stats.sh
+++ b/bin/reproducible_stats.sh
@@ -88,9 +88,27 @@ EOF
init_navi_frame() {
echo "<!DOCTYPE html><html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />" > $NAVI
echo "<link href=\"../static/style.css\" type=\"text/css\" rel=\"stylesheet\" /></head>" >> $NAVI
- echo "<body><table><tr><td><font size=+1>$1</font> " >> $NAVI
- echo "($2) " >> $NAVI
- echo "<font size=-1>at $3:</font> " >> $NAVI
+ echo "<body><table><tr><td><font size=+1>$1</font> $2" >> $NAVI
+ # icons taken from tango-icon-theme (0.8.90-5)
+ # licenced under http://creativecommons.org/licenses/publicdomain/
+ case $3 in
+ reproducible) ICON=weather-clear.png
+ ;;
+ unreproducible) if [ "$5" != "" ] ; then
+ ICON=weather-showers-scattered.png
+ else
+ ICON=weather-showers.png
+ fi
+ ;;
+ FTBFS) ICON=weather-storm.png
+ ;;
+ 404) ICON=weather-severe-alert.png
+ ;;
+ "not for us") ICON=weather-few-clouds-night.png
+ ;;
+ esac
+ echo "<img src=\"../static/$ICON\" /> $3" >> $NAVI
+ echo "<font size=-1>at $4:</font> " >> $NAVI
}
append2navi_frame() {
@@ -103,9 +121,10 @@ finish_navi_frame() {
process_packages() {
for PKG in $@ ; do
- RESULT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date,version FROM source_packages WHERE name = \"$PKG\"")
+ RESULT=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT build_date,version,status FROM source_packages WHERE name = \"$PKG\"")
BUILD_DATE=$(echo $RESULT|cut -d "|" -f1)
VERSION=$(echo $RESULT|cut -d "|" -f2)
+ STATUS=$(echo $RESULT|cut -d "|" -f3)
# remove epoch
EVERSION=$(echo $VERSION | cut -d ":" -f2)
if $BUILDINFO_SIGNS && [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then
@@ -116,7 +135,7 @@ process_packages() {
FILE=$(find $(dirname $NAVI) -name $(basename $NAVI) ! -newermt "$BUILD_DATE" 2>/dev/null || true)
if [ ! -f $NAVI ] || [ "$FILE" != "" ] ; then
MAINLINK=""
- init_navi_frame "$PKG" "$VERSION" "$BUILD_DATE"
+ init_navi_frame "$PKG" "$VERSION" "$STATUS" "$BUILD_DATE" "${STAR[$PKG]}"
if [ -f "/var/lib/jenkins/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo" ] ; then
append2navi_frame " <a href=\"$JENKINS_URL/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo\" target=\"main\">buildinfo</a> "
MAINLINK="$JENKINS_URL/userContent/buildinfo/${PKG}_${EVERSION}_amd64.buildinfo"
diff --git a/userContent/static/error.png b/userContent/static/error.png
index 7d6aaf6f..3bbbb4a0 100644
--- a/userContent/static/error.png
+++ b/userContent/static/error.png
Binary files differ
diff --git a/userContent/static/weather-clear.png b/userContent/static/weather-clear.png
index e17ca7ce..7dc15ea9 100644
--- a/userContent/static/weather-clear.png
+++ b/userContent/static/weather-clear.png
Binary files differ
diff --git a/userContent/static/weather-few-clouds-night.png b/userContent/static/weather-few-clouds-night.png
index 69fe49ad..d69efec9 100644
--- a/userContent/static/weather-few-clouds-night.png
+++ b/userContent/static/weather-few-clouds-night.png
Binary files differ
diff --git a/userContent/static/weather-severe-alert.png b/userContent/static/weather-severe-alert.png
index e4d09b6e..98e9f6c1 100644
--- a/userContent/static/weather-severe-alert.png
+++ b/userContent/static/weather-severe-alert.png
Binary files differ
diff --git a/userContent/static/weather-showers-scattered.png b/userContent/static/weather-showers-scattered.png
index 9eddd93d..8d10d844 100644
--- a/userContent/static/weather-showers-scattered.png
+++ b/userContent/static/weather-showers-scattered.png
Binary files differ
diff --git a/userContent/static/weather-showers.png b/userContent/static/weather-showers.png
index 4450fb1f..d9685d24 100644
--- a/userContent/static/weather-showers.png
+++ b/userContent/static/weather-showers.png
Binary files differ
diff --git a/userContent/static/weather-storm.png b/userContent/static/weather-storm.png
index 3b7ca9ce..feebe1d4 100644
--- a/userContent/static/weather-storm.png
+++ b/userContent/static/weather-storm.png
Binary files differ