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:
parent
0d5fa576b3
commit
93718046d7
1 changed files with 5 additions and 0 deletions
|
@ -1207,6 +1207,11 @@ check_sanity() {
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! $epoch =~ ^[0-9]*$ ]]; then
|
||||||
|
error "$(gettext "%s must be an integer.")" "epoch"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ $arch != 'any' ]]; then
|
if [[ $arch != 'any' ]]; then
|
||||||
if ! in_array $CARCH ${arch[@]}; then
|
if ! in_array $CARCH ${arch[@]}; then
|
||||||
if (( ! IGNOREARCH )); then
|
if (( ! IGNOREARCH )); then
|
||||||
|
|
Loading…
Add table
Reference in a new issue