From 2d1d2e89297c8e9a53f4a12d229fcc50d66ecbc2 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 29 Sep 2014 20:58:36 +0200 Subject: reproducible_stats: correctly link to pbuilder logs with epoch in version --- bin/reproducible_stats.sh | 5 ++--- 1 file 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 "

$COUNT_UGLY packages 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 + # keep epoch + if [ -f "/var/lib/jenkins/userContent/pbuilder/${PKG}_${VERSION}.pbuilder.log" ] ; then htmlecho "$PKG " else htmlecho "$PKG " -- cgit v1.2.3-70-g09d2