From 60167da31a58f77de864bfc5f35d1e3ecb75f15e Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 5 Jan 2016 14:40:58 +0000 Subject: reproducible: build: always print how much the package took to build in rbuild, not only when the build succeeded --- bin/reproducible_common.sh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin/reproducible_common.sh') diff --git a/bin/reproducible_common.sh b/bin/reproducible_common.sh index fc15b868..b354f42b 100755 --- a/bin/reproducible_common.sh +++ b/bin/reproducible_common.sh @@ -496,6 +496,9 @@ calculate_build_duration() { } print_out_duration() { + if [ -z "$DURATION" ]; then + return + fi local HOUR=$(echo "$DURATION/3600"|bc) local MIN=$(echo "($DURATION-$HOUR*3600)/60"|bc) local SEC=$(echo "$DURATION-$HOUR*3600-$MIN*60"|bc) -- cgit v1.2.3-70-g09d2