1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-21 23:38:49 -05:00

makepkg: merge arch dependent variables after PKGBUILD linting

Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Allan McRae 2015-11-13 13:33:23 +10:00
parent ef1fb0ef81
commit 663c74150a

View File

@ -761,10 +761,6 @@ merge_arch_attrs() {
source_buildfile() {
source_safe "$@"
if (( !SOURCEONLY )); then
merge_arch_attrs
fi
}
run_function_safe() {
@ -2004,8 +2000,15 @@ else
source_buildfile "$BUILDFILE"
fi
# set defaults if they weren't specified in buildfile
pkgbase=${pkgbase:-${pkgname[0]}}
# check the PKGBUILD for some basic requirements
lint_pkgbuild || exit 1
if (( !SOURCEONLY )); then
merge_arch_attrs
fi
basever=$(get_full_version)
if [[ $BUILDDIR = "$startdir" ]]; then
@ -2033,9 +2036,6 @@ if have_function pkgver; then
PKGVERFUNC=1
fi
# check the PKGBUILD for some basic requirements
lint_pkgbuild || exit 1
# check we have the software required to process the PKGBUILD
check_software || exit 1