summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJan Alexander Steffens (heftig) <jan.steffens@gmail.com>2018-05-08 15:31:58 +0200
committerAllan McRae <allan@archlinux.org>2018-08-10 04:37:19 +0200
commit7edbbd9a638ec864b42f14cb2dea631c383aebbb (patch)
treeda5981a72b185d7e4b7ba69c26f471bef5b9c2a2 /scripts
parentf2788244d322ca5ac45482d25747fe56176b72af (diff)
downloadpacman-7edbbd9a638ec864b42f14cb2dea631c383aebbb.tar.gz
pacman-7edbbd9a638ec864b42f14cb2dea631c383aebbb.tar.xz
makepkg: Simplify run_package
Signed-off-by: Allan McRae <allan@archlinux.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/makepkg.sh.in9
1 files changed, 1 insertions, 8 deletions
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 49d9e3ad..bf31786b 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -496,14 +496,7 @@ run_check() {
}
run_package() {
- local pkgfunc
- if [[ -z $1 ]]; then
- pkgfunc="package"
- else
- pkgfunc="package_$1"
- fi
-
- run_function_safe "$pkgfunc"
+ run_function_safe "package${1:+_$1}"
}
find_libdepends() {