[pacman-dev] [PATCH] libmakepkg: fix pkgver checking
Allan McRae
allan at archlinux.org
Tue Oct 27 10:45:17 UTC 2015
Signed-off-by: Allan McRae <allan at archlinux.org>
---
scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
index 3fa4ff7..265a3fd 100644
--- a/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/pkgver.sh.in
@@ -30,7 +30,7 @@ lint_pkgbuild_functions+=('lint_pkgver')
check_pkgver() {
- if [[ -z ${pkgver} ]]; then
+ if [[ -z $1 ]]; then
error "$(gettext "%s is not allowed to be empty.")" "pkgver"
return 1
fi
@@ -47,5 +47,5 @@ lint_pkgver() {
return 0
fi
- check_pkgver
+ check_pkgver $pkgver
}
--
2.6.2
More information about the pacman-dev
mailing list