diff options
author | Richard Mortier <mort@cantab.net> | 2019-09-30 12:02:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-09-30 12:05:28 +0000 |
commit | 9be3a6c6a033c2151ae937aa437a960a55f8279c (patch) | |
tree | 8efae330f2fdcd376976ed624557e52327572212 | |
parent | 5486d877c587d957e0a8f55063c580e1cbb61071 (diff) | |
download | abuild-9be3a6c6a033c2151ae937aa437a960a55f8279c.tar.bz2 abuild-9be3a6c6a033c2151ae937aa437a960a55f8279c.tar.xz |
abuild: simplify depends_static
Should not be any significant functional difference.
-rw-r--r-- | abuild.in | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -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" |