diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-13 18:30:16 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-13 18:30:16 +0000 |
commit | f1513e01163e08ec883f19a9a086c1698308cf05 (patch) | |
tree | 8a2a10c2b62a0641232293d7dcdc20f47bcc8be5 /kiss | |
parent | 20f3f66ec8207da6eba70d749495a1f8a172cae6 (diff) | |
download | cpt-f1513e01163e08ec883f19a9a086c1698308cf05.tar.gz |
kiss: handle dependencies 'smarter'
FossilOrigin-Name: 061cc01524677a9b7023e67edb6676d351f87458a55d93f3cfc1484c43ed87d5
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -350,6 +350,9 @@ pkg_build() { log "Resolving dependencies" for pkg; do pkg_depends "$pkg" explicit; done + # If an explicit package is a dependency of another explicit + # package, remove it from the explicit list as it needs to be + # installed as a dependency. for pkg; do case $deps in *" $pkg "*) explicit=$(echo "$explicit" | sed "s/ $pkg / /g") @@ -364,7 +367,7 @@ pkg_build() { # are included and ensure that all installed packages are excluded. for pkg; do case $explicit_build in - *" $pkg "*|-) ;; + *" $pkg "*) ;; *) pkg_list "$pkg" >/dev/null && continue ;; esac |