Commit da720069 authored by Breno Leitao's avatar Breno Leitao Committed by Natanael Copa

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.
parent 0ab473f2
...@@ -2337,7 +2337,6 @@ snapshot() { ...@@ -2337,7 +2337,6 @@ snapshot() {
} }
usage() { usage() {
echo "$program $program_version"
cat <<-EOF cat <<-EOF
usage: $program [options] [-P REPODEST] [-s SRCDEST] [-D DESCRIPTION] [cmd] ... usage: $program [options] [-P REPODEST] [-s SRCDEST] [-D DESCRIPTION] [cmd] ...
$program [-c] -n PKGNAME[-PKGVER] $program [-c] -n PKGNAME[-PKGVER]
...@@ -2424,6 +2423,7 @@ while getopts "AcdD:fFhkKimnp:P:qrRs:uv" opt; do ...@@ -2424,6 +2423,7 @@ while getopts "AcdD:fFhkKimnp:P:qrRs:uv" opt; do
done done
shift $(( $OPTIND - 1 )) shift $(( $OPTIND - 1 ))
echo "$program $program_version"
# check so we are not root # check so we are not root
if [ $(id -u) -eq 0 ] && [ -z "$FAKEROOTKEY" ]; then if [ $(id -u) -eq 0 ] && [ -z "$FAKEROOTKEY" ]; then
[ -z "$forceroot" ] && die "Do not run abuild as root" [ -z "$forceroot" ] && die "Do not run abuild as root"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment