summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2014-10-05 14:02:35 +0200
committerHolger Levsen <holger@layer-acht.org>2014-10-05 14:02:35 +0200
commit513fb00dfeec02831e6c9da173c860940c86893e (patch)
tree9fbe9f9178ab4a8beef1c60fd18ee48eddfe213a /bin
parent195c87d6605970a4da35cc420637b6d2d39faf38 (diff)
downloadjenkins.debian.net-513fb00dfeec02831e6c9da173c860940c86893e.tar.xz
reproducible: better variable naming
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_stats.sh14
1 files changed, 7 insertions, 7 deletions
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 "<p>$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 " <a href=\"$JENKINS_URL/userContent/dbd/${PKG}_${VERSION}.debbindiff.html\">$PKG</a> "
+ EVERSION=$(echo $VERSION | cut -d ":" -f2)
+ if [ -f "/var/lib/jenkins/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" ] ; then
+ htmlecho " <a href=\"$JENKINS_URL/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html\">$PKG</a> "
else
- htmlecho " <a href=\"$JENKINS_URL/userContent/dbd/${PKG}_${VERSION}.diffp.log\">$PKG</a> "
+ htmlecho " <a href=\"$JENKINS_URL/userContent/dbd/${PKG}_${EVERSION}.diffp.log\">$PKG</a> "
fi
done
htmlecho "</code></p>"
@@ -61,9 +61,9 @@ htmlecho "<p>$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 " <a href=\"$JENKINS_URL/userContent/pbuilder/${PKG}_${VERSION}.pbuilder.log\">$PKG</a> "
+ EVERSION=$(echo $VERSION | cut -d ":" -f2)
+ if [ -f "/var/lib/jenkins/userContent/pbuilder/${PKG}_${EVERSION}.pbuilder.log" ] ; then
+ htmlecho " <a href=\"$JENKINS_URL/userContent/pbuilder/${PKG}_${EVERSION}.pbuilder.log\">$PKG</a> "
else
htmlecho " $PKG "
fi