Add epoch verification to makepkg

If defined, it must be an integer.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2010-10-11 17:18:05 -05:00
parent 0d5fa576b3
commit 93718046d7

View file

@ -1207,6 +1207,11 @@ check_sanity() {
return 1
fi
if [[ ! $epoch =~ ^[0-9]*$ ]]; then
error "$(gettext "%s must be an integer.")" "epoch"
return 1
fi
if [[ $arch != 'any' ]]; then
if ! in_array $CARCH ${arch[@]}; then
if (( ! IGNOREARCH )); then