From da720069cab6481dd2f416efbc63c1223584ac2a Mon Sep 17 00:00:00 2001 From: Breno Leitao Date: Wed, 22 Mar 2017 17:00:48 +0000 Subject: [PATCH] abuild: Always print the builder version Currently is hard to discover what abuild version was used on a build log. This lack of information makes it hard to reproduce a buld failure. This change simply adds the abuild version at all logs. --- abuild.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abuild.in b/abuild.in index 0370ac6..228d444 100644 --- a/abuild.in +++ b/abuild.in @@ -2337,7 +2337,6 @@ snapshot() { } usage() { - echo "$program $program_version" cat <<-EOF usage: $program [options] [-P REPODEST] [-s SRCDEST] [-D DESCRIPTION] [cmd] ... $program [-c] -n PKGNAME[-PKGVER] @@ -2424,6 +2423,7 @@ while getopts "AcdD:fFhkKimnp:P:qrRs:uv" opt; do done shift $(( $OPTIND - 1 )) +echo "$program $program_version" # check so we are not root if [ $(id -u) -eq 0 ] && [ -z "$FAKEROOTKEY" ]; then [ -z "$forceroot" ] && die "Do not run abuild as root"