abuild: avoid print version multiple times

and respect -q flag
This commit is contained in:
Natanael Copa 2017-09-19 11:44:19 +00:00
parent da720069ca
commit d03366f80c

View File

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