summaryrefslogtreecommitdiffstats
path: root/scripts/libmakepkg/lint_pkgbuild/install.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/libmakepkg/lint_pkgbuild/install.sh.in')
-rw-r--r--scripts/libmakepkg/lint_pkgbuild/install.sh.in10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/libmakepkg/lint_pkgbuild/install.sh.in b/scripts/libmakepkg/lint_pkgbuild/install.sh.in
index 95076692..1bf5681d 100644
--- a/scripts/libmakepkg/lint_pkgbuild/install.sh.in
+++ b/scripts/libmakepkg/lint_pkgbuild/install.sh.in
@@ -32,11 +32,15 @@ lint_pkgbuild_functions+=('lint_install')
lint_install() {
- local list file name install_list ret=0
+ local list file install_list ret=0
install_list=("${install[@]}")
- for name in "${pkgname[@]}"; do
- extract_function_variable "package_$name" install 0 file
+ # set pkgname the same way we do for running package(), this way we get
+ # the right value in extract_function_variable
+ local pkgname_backup=(${pkgname[@]})
+ local pkgname
+ for pkgname in "${pkgname_backup[@]}"; do
+ extract_function_variable "package_$pkgname" install 0 file
install_list+=("$file")
done