diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-13 18:43:23 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2019-09-13 18:43:23 +0000 |
commit | 3eafc2a57e88994fbb85c96a50ef231c95d9d99d (patch) | |
tree | 3873adefdedbd152ffca6f1ff24ee19afa9bf62d /kiss | |
parent | 8cf5c9f14b74374033720645f0b9f1af46e57d75 (diff) | |
download | cpt-3eafc2a57e88994fbb85c96a50ef231c95d9d99d.tar.gz |
kiss: fix build duplicates
FossilOrigin-Name: c18e3e11cd9010525bdfbf5bda1532b9ca116b60f6627f4f70bc5325d420568c
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -341,14 +341,22 @@ pkg_build() { # also checks checksums, downloads sources and ensure all dependencies # are installed. - # Store the explicit packages so we can handle them differently - # below. Dependencies are automatically installed but packages - # passed to KISS aren't. - explicit=" $* " - explicit_build=" $* " - log "Resolving dependencies" - for pkg; do pkg_depends "$pkg" explicit; done + for pkg; do + case $explicit in + *" $pkg "*) ;; + + *) + pkg_depends "$pkg" explicit + + # Store the explicit packages so we can handle them differently + # below. Dependencies are automatically installed but packages + # passed to KISS aren't. + explicit="$explicit $pkg " + explicit_build="$explicit_build $pkg " + ;; + esac + done # If an explicit package is a dependency of another explicit # package, remove it from the explicit list as it needs to be |