summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBreno Leitao <breno.leitao@gmail.com>2017-03-22 17:00:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 11:59:18 +0000
commitda720069cab6481dd2f416efbc63c1223584ac2a (patch)
tree0215fcd14d162e6bff4c6815b6e594dec7ac1773
parent0ab473f28a0ced98100cb2e7ffded501610d936f (diff)
downloadabuild-da720069cab6481dd2f416efbc63c1223584ac2a.tar.gz
abuild-da720069cab6481dd2f416efbc63c1223584ac2a.tar.bz2
abuild-da720069cab6481dd2f416efbc63c1223584ac2a.tar.xz
abuild-da720069cab6481dd2f416efbc63c1223584ac2a.zip
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.
-rw-r--r--abuild.in2
1 files changed, 1 insertions, 1 deletions
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"