abuild: simplify depends_static
Should not be any significant functional difference.
This commit is contained in:
parent
5486d877c5
commit
9be3a6c6a0
@ -1771,17 +1771,12 @@ default_static() {
|
|||||||
|
|
||||||
# search for -dev package matching our prefix
|
# search for -dev package matching our prefix
|
||||||
if [ -z "$depends_static" ]; then
|
if [ -z "$depends_static" ]; then
|
||||||
# remove common suffixes to get our prefix
|
devpkg="${subpkgname%-libs-static}"
|
||||||
for devpkg in \
|
devpkg="${devpkg%-static}"
|
||||||
"${subpkgname%-static}" \
|
|
||||||
"${subpkgname%-libs-static}" \
|
|
||||||
;
|
|
||||||
do
|
|
||||||
devpkg="$devpkg-dev"
|
devpkg="$devpkg-dev"
|
||||||
if subpackages_has "$devpkg"; then
|
if subpackages_has "$devpkg"; then
|
||||||
depends_static="$devpkg"
|
depends_static="$devpkg"
|
||||||
fi
|
fi
|
||||||
done
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
depends="$depends_static"
|
depends="$depends_static"
|
||||||
|
Reference in New Issue
Block a user