Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
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 12:37:19 +1000
commit7edbbd9a638ec864b42f14cb2dea631c383aebbb (patch)
treeda5981a72b185d7e4b7ba69c26f471bef5b9c2a2
parentf2788244d322ca5ac45482d25747fe56176b72af (diff)
makepkg: Simplify run_package
Signed-off-by: Allan McRae <allan@archlinux.org>
-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() {