abuild: avoid print version multiple times
and respect -q flag
This commit is contained in:
parent
da720069ca
commit
d03366f80c
@ -2423,7 +2423,6 @@ 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"
|
||||||
@ -2481,6 +2480,9 @@ if [ -n "$subpkgname" ]; then
|
|||||||
origsubpackages="$subpackages"
|
origsubpackages="$subpackages"
|
||||||
subpackages=
|
subpackages=
|
||||||
else
|
else
|
||||||
|
if [ -z "$FAKEROOTKEY" ]; then
|
||||||
|
msg "$program $program_version"
|
||||||
|
fi
|
||||||
allpackages="$pkgname $subpackages"
|
allpackages="$pkgname $subpackages"
|
||||||
for i in $linguas; do
|
for i in $linguas; do
|
||||||
allpackages="$allpackages $pkgname-lang-$i::noarch"
|
allpackages="$allpackages $pkgname-lang-$i::noarch"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user