[pacman-dev] [PATCH 03/10] makepkg: Simplify run_package
Jan Alexander Steffens (heftig)
jan.steffens at gmail.com
Thu May 31 16:24:48 UTC 2018
---
scripts/makepkg.sh.in | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/scripts/makepkg.sh.in b/scripts/makepkg.sh.in
index 748481e4..4684e444 100644
--- a/scripts/makepkg.sh.in
+++ b/scripts/makepkg.sh.in
@@ -495,14 +495,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() {
--
2.17.0
More information about the pacman-dev
mailing list