summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-13 15:08:29 +0200
committerAllan McRae <allan@archlinux.org>2014-10-13 15:22:09 +0200
commita0cfed7df2ffac12df2bc935c53d273230f8aaa4 (patch)
treefe46fc48904b8fae040fbda05dac9d4e72be0b30 /scripts
parent627ede877920d82ae6d1c9cc2d41c04cbc62ff25 (diff)
downloadpacman-a0cfed7df2ffac12df2bc935c53d273230f8aaa4.tar.gz
pacman-a0cfed7df2ffac12df2bc935c53d273230f8aaa4.tar.xz
makepkg: reorder args to pkgbuild_get_attribute for consistency
In all other cases, this code gets the outvalue from the final parameter. Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 4a3ae2ee..8a67d94e 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -908,7 +908,7 @@ get_pkg_arch() {
fi
else
local arch_override
- pkgbuild_get_attribute "$1" arch arch_override 0
+ pkgbuild_get_attribute "$1" arch 0 arch_override
(( ${#arch_override[@]} == 0 )) && arch_override=("${arch[@]}")
if [[ $arch_override = "any" ]]; then
printf "%s\n" "any"
@@ -2418,10 +2418,10 @@ extract_function_var() {
pkgbuild_get_attribute() {
# $1: package name
# $2: attribute name
- # $3: name of output var
- # $4: multivalued
+ # $3: multivalued
+ # $4: name of output var
- local pkgname=$1 attrname=$2 outputvar=$3 isarray=$4
+ local pkgname=$1 attrname=$2 isarray=$3 outputvar=$4
printf -v "$outputvar" %s ''
@@ -2518,7 +2518,7 @@ lint_arch() {
fi
for name in "${pkgname[@]}"; do
- pkgbuild_get_attribute "$name" 'arch' list 1
+ pkgbuild_get_attribute "$name" 'arch' 1 list
if [[ $list && $list != 'any' ]] && ! in_array $CARCH "${list[@]}"; then
if (( ! IGNOREARCH )); then
error "$(gettext "%s is not available for the '%s' architecture.")" "$name" "$CARCH"