summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2017-09-21 08:41:58 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2017-09-28 10:43:28 +0000
commita2f839fd2700e8fcc72088ea9ae3c8e8f08ec06a (patch)
treed2e862c10c6ff42fa16ab1f8388581b4c4c69c3c
parentdc4f5cb9728b983f10c63e8cfd9b117ea7004c39 (diff)
downloadabuild-a2f839fd2700e8fcc72088ea9ae3c8e8f08ec06a.tar.gz
abuild-a2f839fd2700e8fcc72088ea9ae3c8e8f08ec06a.tar.bz2
abuild-a2f839fd2700e8fcc72088ea9ae3c8e8f08ec06a.tar.xz
abuild-a2f839fd2700e8fcc72088ea9ae3c8e8f08ec06a.zip
abuild: only print version if we are building
The purpose was to show abuild version in the build logs
-rw-r--r--abuild.in8
1 files changed, 5 insertions, 3 deletions
diff --git a/abuild.in b/abuild.in
index 18ed06a..7f9818b 100644
--- a/abuild.in
+++ b/abuild.in
@@ -111,6 +111,10 @@ spell_error() {
die "APKBUILD contains '$1'. It should be '$2'"
}
+print_version() {
+ msg "$program $program_version"
+}
+
# check if apkbuild is basicly sane
default_sanitycheck() {
local i= j= suggestion=
@@ -1428,6 +1432,7 @@ build_abuildrepo() {
_check=true
fi
if ! apk_up2date || [ -n "$force" ]; then
+ print_version
# check early if we have abuild key
abuild-sign --installed
logcmd "building $repo/$pkgname-$pkgver-r$pkgrel"
@@ -2478,9 +2483,6 @@ 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"