From 7edbbd9a638ec864b42f14cb2dea631c383aebbb Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Tue, 8 May 2018 15:31:58 +0200 Subject: makepkg: Simplify run_package Signed-off-by: Allan McRae --- scripts/makepkg.sh.in | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'scripts') 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() { -- cgit v1.2.3-24-g4f1b