mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2025-01-13 02:27:01 +00:00
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:
parent
0ab473f28a
commit
da720069ca
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user