From 9be3a6c6a033c2151ae937aa437a960a55f8279c Mon Sep 17 00:00:00 2001 From: Richard Mortier Date: Mon, 30 Sep 2019 12:02:40 +0000 Subject: abuild: simplify depends_static Should not be any significant functional difference. --- abuild.in | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/abuild.in b/abuild.in index 43adc7d..8483cf8 100644 --- a/abuild.in +++ b/abuild.in @@ -1771,17 +1771,12 @@ default_static() { # search for -dev package matching our prefix if [ -z "$depends_static" ]; then - # remove common suffixes to get our prefix - for devpkg in \ - "${subpkgname%-static}" \ - "${subpkgname%-libs-static}" \ - ; - do - devpkg="$devpkg-dev" - if subpackages_has "$devpkg"; then - depends_static="$devpkg" - fi - done + devpkg="${subpkgname%-libs-static}" + devpkg="${devpkg%-static}" + devpkg="$devpkg-dev" + if subpackages_has "$devpkg"; then + depends_static="$devpkg" + fi fi depends="$depends_static" -- cgit v1.2.3-70-g09d2