diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-10-07 18:27:10 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-10-07 18:27:10 +0200 |
commit | f868715f5f722aa2cdaee1709372e1d319bab238 (patch) | |
tree | e8b6da19240cb6bef09b35461f0784cb4e2a3436 /bin | |
parent | a2b01c8c19f032211a58ae88c55ba3fd7e80829a (diff) | |
download | jenkins.debian.net-f868715f5f722aa2cdaee1709372e1d319bab238.tar.xz |
reproducible: refactor, introduce associative array
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_stats.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 1bccbf20..49b960e1 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -38,6 +38,7 @@ PERCENT_NOTFORUS=$(echo "scale=1 ; ($COUNT_NOTFORUS*100/$COUNT_TOTAL)" | bc) PERCENT_SOURCELESS=$(echo "scale=1 ; ($COUNT_SOURCELESS*100/$COUNT_TOTAL)" | bc) GUESS_GOOD=$(echo "$PERCENT_GOOD*$AMOUNT/100" | bc) declare -A STAR +declare -A LINKTARGET write_summary() { echo "$1" >> $SUMMARY @@ -117,10 +118,11 @@ link_packages() { write_pkg_frameset "$PKG" "$MAINLINK" fi if [ -f "/var/lib/jenkins/userContent/rbuild/${PKG}_${EVERSION}.rbuild.log" ] ; then - write_summary " <a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\">$PKG</a>${STAR[$PKG]} " + LINKTARGET[$PKG]="<a href=\"$JENKINS_URL/userContent/rb-pkg/$PKG.html\">$PKG</a>${STAR[$PKG]}" else - write_summary " $PKG " + LINKTARGET[$PKG]="$PKG" fi + write_summary " ${LINKTARGET[$PKG]} " done } |