diff options
-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 " |