abuild: only print version if we are building
The purpose was to show abuild version in the build logs
This commit is contained in:
parent
dc4f5cb972
commit
a2f839fd27
@ -111,6 +111,10 @@ spell_error() {
|
|||||||
die "APKBUILD contains '$1'. It should be '$2'"
|
die "APKBUILD contains '$1'. It should be '$2'"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
print_version() {
|
||||||
|
msg "$program $program_version"
|
||||||
|
}
|
||||||
|
|
||||||
# check if apkbuild is basicly sane
|
# check if apkbuild is basicly sane
|
||||||
default_sanitycheck() {
|
default_sanitycheck() {
|
||||||
local i= j= suggestion=
|
local i= j= suggestion=
|
||||||
@ -1428,6 +1432,7 @@ build_abuildrepo() {
|
|||||||
_check=true
|
_check=true
|
||||||
fi
|
fi
|
||||||
if ! apk_up2date || [ -n "$force" ]; then
|
if ! apk_up2date || [ -n "$force" ]; then
|
||||||
|
print_version
|
||||||
# check early if we have abuild key
|
# check early if we have abuild key
|
||||||
abuild-sign --installed
|
abuild-sign --installed
|
||||||
logcmd "building $repo/$pkgname-$pkgver-r$pkgrel"
|
logcmd "building $repo/$pkgname-$pkgver-r$pkgrel"
|
||||||
@ -2478,9 +2483,6 @@ 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