makepkg: fix package arch detection
commit9d9c12e4e2dc92dfb6582ea7f79087e382348e71
authorAllan McRae <allan@archlinux.org>
Tue, 1 May 2012 00:59:03 +0000 (1 10:59 +1000)
committerDan McGee <dan@archlinux.org>
Tue, 1 May 2012 01:48:59 +0000 (30 20:48 -0500)
treee939e42e849a437dcb1f974c8c200ae4633994b6
parent92e20b508d302a1d91f9b2a6836ac1cd4453c87c
makepkg: fix package arch detection

get_pkg_arch checked for the arch variable being overridden in the
package_$1() function when used with a package as a parameter.
However, when there was no override, it did not fall back to the
global value.

Signed-off-by: Allan McRae <allan@archlinux.org>
scripts/makepkg.sh.in