diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-08 18:11:56 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-08 18:11:56 +0200 |
commit | 20e40dd99e8fdd317eae4383a9f66667aece77c6 (patch) | |
tree | c31966ce6632c5770660ef236f657137cbe4c03e | |
parent | 4c824d3ff97b1c6ade9f65e5095a07d0aedcb6d5 (diff) | |
download | jenkins.debian.net-20e40dd99e8fdd317eae4383a9f66667aece77c6.tar.xz |
reproducible: display nice status icon in package view
-rwxr-xr-x | bin/reproducible_stats.sh | 29 | ||||
-rw-r--r-- | userContent/static/error.png | bin | 925 -> 653 bytes | |||
-rw-r--r-- | userContent/static/weather-clear.png | bin | 952 -> 682 bytes | |||
-rw-r--r-- | userContent/static/weather-few-clouds-night.png | bin | 1211 -> 965 bytes | |||
-rw-r--r-- | userContent/static/weather-severe-alert.png | bin | 1537 -> 977 bytes | |||
-rw-r--r-- | userContent/static/weather-showers-scattered.png | bin | 1667 -> 1045 bytes | |||
-rw-r--r-- | userContent/static/weather-showers.png | bin | 1528 -> 959 bytes | |||
-rw-r--r-- | userContent/static/weather-storm.png | bin | 1593 -> 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 Binary files differindex 7d6aaf6f..3bbbb4a0 100644 --- a/userContent/static/error.png +++ b/userContent/static/error.png diff --git a/userContent/static/weather-clear.png b/userContent/static/weather-clear.png Binary files differindex e17ca7ce..7dc15ea9 100644 --- a/userContent/static/weather-clear.png +++ b/userContent/static/weather-clear.png diff --git a/userContent/static/weather-few-clouds-night.png b/userContent/static/weather-few-clouds-night.png Binary files differindex 69fe49ad..d69efec9 100644 --- a/userContent/static/weather-few-clouds-night.png +++ b/userContent/static/weather-few-clouds-night.png diff --git a/userContent/static/weather-severe-alert.png b/userContent/static/weather-severe-alert.png Binary files differindex e4d09b6e..98e9f6c1 100644 --- a/userContent/static/weather-severe-alert.png +++ b/userContent/static/weather-severe-alert.png diff --git a/userContent/static/weather-showers-scattered.png b/userContent/static/weather-showers-scattered.png Binary files differindex 9eddd93d..8d10d844 100644 --- a/userContent/static/weather-showers-scattered.png +++ b/userContent/static/weather-showers-scattered.png diff --git a/userContent/static/weather-showers.png b/userContent/static/weather-showers.png Binary files differindex 4450fb1f..d9685d24 100644 --- a/userContent/static/weather-showers.png +++ b/userContent/static/weather-showers.png diff --git a/userContent/static/weather-storm.png b/userContent/static/weather-storm.png Binary files differindex 3b7ca9ce..feebe1d4 100644 --- a/userContent/static/weather-storm.png +++ b/userContent/static/weather-storm.png |