index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Allan McRae <allan@archlinux.org> | 2015-11-13 14:32:52 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-11-23 11:13:39 +1000 |
commit | c26e5b81e5c22e1316eb2f384cc175438772a8f2 (patch) | |
tree | 946a14ece82a6e099fa04eb14fe0f7a5a3da4048 /scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in | |
parent | 947dfda515505f937eac5b388384dd6df0278e40 (diff) |
-rw-r--r-- | scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in | 4 |
diff --git a/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in b/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in index 0d4361cc..53f89ce6 100644 --- a/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in +++ b/scripts/libmakepkg/lint_pkgbuild/pkgbase.sh.in @@ -30,6 +30,8 @@ lint_pkgbuild_functions+=('lint_pkgbase') lint_pkgbase() { + local ret=0 + if [[ ${pkgbase:0:1} = "-" ]]; then error "$(gettext "%s is not allowed to start with a hyphen.")" "pkgname" return 1 @@ -43,4 +45,6 @@ lint_pkgbase() { 'pkgbase' "${i//[[:alnum:]+_.@-]}" ret=1 fi + + return $ret } |