diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-27 19:39:34 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-02-27 19:39:34 -0300 |
commit | f17859f016eee6e7dcdae1ade79b7263e67fe5c3 (patch) | |
tree | 8f78564bef349999b044d0848aab7ce2aed82f96 /libre/pacman/0001-libmakepkg-fix-is_array-function.patch | |
parent | 9a1708ca7e5bddea7c39c9ec7b70a8dd392c5685 (diff) |
pacman-5.0.1-2.parabola1: updating version
* libmakepkg bug fix
Diffstat (limited to 'libre/pacman/0001-libmakepkg-fix-is_array-function.patch')
-rw-r--r-- | libre/pacman/0001-libmakepkg-fix-is_array-function.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libre/pacman/0001-libmakepkg-fix-is_array-function.patch b/libre/pacman/0001-libmakepkg-fix-is_array-function.patch new file mode 100644 index 000000000..b8ada06f4 --- /dev/null +++ b/libre/pacman/0001-libmakepkg-fix-is_array-function.patch @@ -0,0 +1,32 @@ +From 2822a45fa91b430c99b4b8bd3531ee745ada1ab7 Mon Sep 17 00:00:00 2001 +From: Allan McRae <allan@archlinux.org> +Date: Fri, 26 Feb 2016 15:01:11 +1000 +Subject: [PATCH] libmakepkg: fix is_array function + +This happened to work for the majority of cases because the only calling +function used a variable named "i" that was related to the variable being +passed to the function. + +Fixes FS#48340. + +Signed-off-by: Allan McRae <allan@archlinux.org> +--- + scripts/libmakepkg/util/util.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/scripts/libmakepkg/util/util.sh b/scripts/libmakepkg/util/util.sh +index 675e75d..f9f1c20 100644 +--- a/scripts/libmakepkg/util/util.sh ++++ b/scripts/libmakepkg/util/util.sh +@@ -46,7 +46,7 @@ is_array() { + local shellopts=$(shopt -p) + shopt -s extglob + +- if [[ $(declare -p "$i") == declare\ -*([[:alnum:]])a*([[:alnum:]])\ * ]]; then ++ if [[ $(declare -p "$v") == declare\ -*([[:alnum:]])a*([[:alnum:]])\ * ]]; then + ret=0 + fi + +-- +2.7.1 + |