diff options
author | Luke Shumaker <lukeshu@parabola.nu> | 2018-08-09 19:41:13 +0200 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2019-01-10 08:00:05 +0100 |
commit | aa284c97f1fdef7d43a523387533ad3981627504 (patch) | |
tree | a405912afecc27c2c332ca88d07aa07be01294df /scripts | |
parent | f7efa6a93d5361af610827d41045d87c7a72f2b5 (diff) | |
download | pacman-aa284c97f1fdef7d43a523387533ad3981627504.tar.gz pacman-aa284c97f1fdef7d43a523387533ad3981627504.tar.xz |
makepkg: check_pkgrel: Don't say "decimal" in the error message
If you have a malformed pkgrel, the error message says that it must be a
"decimal". That isn't quite true, as that would mean that `1.1 == 1.10`.
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/libmakepkg/lint_pkgbuild/pkgrel.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/lint_pkgbuild/pkgrel.sh.in b/scripts/libmakepkg/lint_pkgbuild/pkgrel.sh.in index 5dc9d3a7..cc2c0f40 100644 --- a/scripts/libmakepkg/lint_pkgbuild/pkgrel.sh.in +++ b/scripts/libmakepkg/lint_pkgbuild/pkgrel.sh.in @@ -37,7 +37,7 @@ check_pkgrel() { fi if [[ $rel != +([0-9])?(.+([0-9])) ]]; then - error "$(gettext "%s must be a decimal, not %s.")" "pkgrel${type:+ in $type}" "$rel" + error "$(gettext "%s must be of the form 'integer[.integer]', not %s.")" "pkgrel${type:+ in $type}" "$rel" return 1 fi } |