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.
This commit is contained in:
Breno Leitao 2017-03-22 17:00:48 +00:00 committed by Natanael Copa
parent 0ab473f28a
commit da720069ca
1 changed files with 1 additions and 1 deletions

View File

@ -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"