kiss: handle dependencies 'smarter'

This commit is contained in:
Dylan Araps 2019-09-13 21:31:55 +03:00
parent 728965343e
commit f353983fd7

2
kiss
View File

@ -355,6 +355,8 @@ pkg_build() {
# installed as a dependency. # installed as a dependency.
for pkg; do for pkg; do
case $deps in case $deps in
# There's no better way to remove a word from a string in
# POSIX 'sh' sadly.
*" $pkg "*) explicit=$(echo "$explicit" | sed "s/ $pkg / /g") *" $pkg "*) explicit=$(echo "$explicit" | sed "s/ $pkg / /g")
esac esac
done done