diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_build.sh | 2 | ||||
-rwxr-xr-x | bin/reproducible_common.sh | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index d5939c37..b06e5298 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -396,7 +396,6 @@ call_diffoscope_on_changes_files() { irc_message "Something weird happened when running $DIFFOSCOPE (which exited with $RESULT) and I don't know how to handle it. Please check $BUILDLOG and $REPRODUCIBLE_URL/$SUITE/$ARCH/$SRCPACKAGE" ;; esac - print_out_duration } choose_package() { @@ -794,6 +793,7 @@ if [ $FTBFS -eq 1 ] ; then elif [ $FTBFS -eq 0 ] ; then call_diffoscope_on_changes_files # defines DIFFOSCOPE, update_db_and_html defines STATUS fi +print_out_duration cd .. cleanup_all 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) |