summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-09-19 11:44:19 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-19 11:59:18 +0000
commitd03366f80cdd23b913f45729456e11cda8b610a8 (patch)
treeb68c34bc52c9bcae964457f20a777684be1d6a43 /abuild.in
parentda720069cab6481dd2f416efbc63c1223584ac2a (diff)
downloadabuild-d03366f80cdd23b913f45729456e11cda8b610a8.tar.gz
abuild-d03366f80cdd23b913f45729456e11cda8b610a8.tar.bz2
abuild-d03366f80cdd23b913f45729456e11cda8b610a8.tar.xz
abuild-d03366f80cdd23b913f45729456e11cda8b610a8.zip
abuild: avoid print version multiple times
and respect -q flag
Diffstat (limited to 'abuild.in')
-rw-r--r--abuild.in4
1 files changed, 3 insertions, 1 deletions
diff --git a/abuild.in b/abuild.in
index 228d444..2ec401a 100644
--- a/abuild.in
+++ b/abuild.in
@@ -2423,7 +2423,6 @@ 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"
@@ -2481,6 +2480,9 @@ if [ -n "$subpkgname" ]; then
origsubpackages="$subpackages"
subpackages=
else
+ if [ -z "$FAKEROOTKEY" ]; then
+ msg "$program $program_version"
+ fi
allpackages="$pkgname $subpackages"
for i in $linguas; do
allpackages="$allpackages $pkgname-lang-$i::noarch"