1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

libmakepkg: fix pkgver checking

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2015-10-27 20:44:57 +10:00
parent 6fdc589fc6
commit 960b64553d

View File

@ -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
}