From 0bbf25d70bff66989256e6c39f132889d22762ee Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 7 Oct 2014 15:39:46 +0200 Subject: reproducible: display size of rbuild.log --- bin/reproducible_stats.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_stats.sh b/bin/reproducible_stats.sh index b70ed42f..239e9c4b 100755 --- a/bin/reproducible_stats.sh +++ b/bin/reproducible_stats.sh @@ -102,10 +102,12 @@ link_packages() { append2navi_frame " debbindiff " MAINLINK="$JENKINS_URL/userContent/dbd/${PKG}_${EVERSION}.debbindiff.html" fi - if [ -f "/var/lib/jenkins/userContent/rbuild/${PKG}_${EVERSION}.rbuild.log" ] ; then - append2navi_frame " rbuild " + RBUILD_LOG="rbuild/${PKG}_${EVERSION}.rbuild.log" + if [ -f "/var/lib/jenkins/userContent/${RBUILD_LOG}" ] ; then + SIZE=$(du -sh "/var/lib/jenkins/userContent/${RBUILD_LOG}" |cut -f1) + append2navi_frame " rbuild ($SIZE) " if [ "$MAINLINK" = "" ] ; then - MAINLINK="$JENKINS_URL/userContent/rbuild/${PKG}_${EVERSION}.rbuild.log" + MAINLINK="$JENKINS_URL/userContent/${RBUILD_LOG}" fi fi append2navi_frame " PTS " -- cgit v1.2.3-54-g00ecf