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>
This commit is contained in:
Luke Shumaker 2018-08-09 13:41:13 -04:00 committed by Allan McRae
parent f7efa6a93d
commit aa284c97f1

View file

@ -37,7 +37,7 @@ check_pkgrel() {
fi fi
if [[ $rel != +([0-9])?(.+([0-9])) ]]; then 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 return 1
fi fi
} }