summaryrefslogtreecommitdiff
path: root/apkgrel.in
diff options
context:
space:
mode:
authorDubiousjim <dubiousjim@gmail.com>2013-07-05 00:21:37 -0400
committerNatanael Copa <ncopa@alpinelinux.org>2013-07-09 07:12:56 +0000
commitb2d6b47be1ae42ff6271cfa31283a518ea5949ef (patch)
tree1b7de05e4c09f8dd678f31cff96e31ed51960467 /apkgrel.in
parentf15c630cb888dad70809efc12644a4570372320b (diff)
downloadabuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.gz
abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.bz2
abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.tar.xz
abuild-b2d6b47be1ae42ff6271cfa31283a518ea5949ef.zip
various: s/echo/msg/, s/echo/error/, tweak error messages
Diffstat (limited to 'apkgrel.in')
-rw-r--r--apkgrel.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/apkgrel.in b/apkgrel.in
index 7e33e34..1d178aa 100644
--- a/apkgrel.in
+++ b/apkgrel.in
@@ -25,7 +25,7 @@ show_plain() {
show_pretty() {
(
. "$1" || exit 1
- [ -n "$pkgname" ] || die "$1: no pkgname"
+ [ -n "$pkgname" ] || die "no \$pkgname for $1"
printf '%s: r%s\n' "$pkgname" "${pkgrel:-?}"
)
}
@@ -63,7 +63,7 @@ do_verify() {
for f; do
[ -d "$f" ] && f="$f/APKBUILD"
if ! grep -q '^pkgrel=[0-9]' "$f"; then
- echo "$f: Has no proper pkgrel" >&2
+ error "no proper \$pkgrel for $f"
rc=1
fi
done