[pacman-dev] [PATCH 3/6] makepkg: Simplify run_package
Jan Alexander Steffens (heftig)
jan.steffens at gmail.com
Tue Jun 19 20:33:58 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 053e6569..331249ea 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() {
--
2.17.1
More information about the pacman-dev
mailing list