diff options
author | Holger Levsen <holger@layer-acht.org> | 2014-09-29 20:58:36 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2014-09-29 20:58:36 +0200 |
commit | 2d1d2e89297c8e9a53f4a12d229fcc50d66ecbc2 (patch) | |
tree | 3b281280d5fcfdec31e68ccdba4e93b91b09f768 | |
parent | 4fdf0a609fabaaeea4172cf0946bc9dc6f6e6bb7 (diff) | |
download | jenkins.debian.net-2d1d2e89297c8e9a53f4a12d229fcc50d66ecbc2.tar.xz |
reproducible_stats: correctly link to pbuilder logs with epoch in version
-rwxr-xr-x | bin/reproducible_stats.sh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index 51fe7e9e..4f043d3d 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -56,9 +56,8 @@ htmlecho htmlecho "<p>$COUNT_UGLY packages failed to build from source: <code>" 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 + # keep epoch + 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> " else htmlecho "$PKG " |