diff --git a/scripts/libmakepkg/lint_pkgbuild/arch.sh.in b/scripts/libmakepkg/lint_pkgbuild/arch.sh.in index ace2ee5c..8d4afee0 100644 --- a/scripts/libmakepkg/lint_pkgbuild/arch.sh.in +++ b/scripts/libmakepkg/lint_pkgbuild/arch.sh.in @@ -44,9 +44,11 @@ validate_arch() { ret=1 fi else - if ! in_array "$CARCH" "${a[@]}"; then - error "$(gettext "%s is not available for the '%s' architecture.")" "$n" "$CARCH" - ret=1 + if (( ! IGNOREARCH )); then + if ! in_array "$CARCH" "${a[@]}"; then + error "$(gettext "%s is not available for the '%s' architecture.")" "$n" "$CARCH" + ret=1 + fi fi fi @@ -68,10 +70,6 @@ validate_arch() { lint_arch() { local name list ret=0 - if (( IGNOREARCH )); then - return 0; - fi - validate_arch "$pkgbase" "${arch[@]}" if (( ret == 0 )); then