From 513fb00dfeec02831e6c9da173c860940c86893e Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Sun, 5 Oct 2014 14:02:35 +0200 Subject: reproducible: better variable naming --- bin/reproducible_stats.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'bin/reproducible_stats.sh') diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index c00c8a02..c55dbde3 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -48,11 +48,11 @@ htmlecho "

$COUNT_BAD packages ($PERCENT_BAD% of $COUNT_TOTAL) failed to built for PKG in $BAD ; do VERSION=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"") # remove epoch - VERSION=$(echo $VERSION | cut -d ":" -f2) - if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${VERSION}.debbindiff.html" ] ; then - htmlecho " $PKG " + EVERSION=$(echo $VERSION | cut -d ":" -f2) + if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] ; then + htmlecho " $PKG " else - htmlecho " $PKG " + htmlecho " $PKG " fi done htmlecho "

" @@ -61,9 +61,9 @@ htmlecho "

$COUNT_UGLY packages ($PERCENT_UGLY%) failed to build from source: for PKG in $UGLY ; do VERSION=$(sqlite3 -init $INIT $PACKAGES_DB "SELECT version FROM source_packages WHERE name = \"$PKG\"") # remove epoch - VERSION=$(echo $VERSION | cut -d ":" -f2) - if [ -f "/var/lib/jenkins/userContent/pbuilder/${PKG}_${VERSION}.pbuilder.log" ] ; then - htmlecho " $PKG " + EVERSION=$(echo $VERSION | cut -d ":" -f2) + if [ -f "/var/lib/jenkins/userContent/pbuilder/${PKG}_${EVERSION}.pbuilder.log" ] ; then + htmlecho " $PKG " else htmlecho " $PKG " fi -- cgit v1.2.3-70-g09d2