From 72aa4d7772c85eba60cf23859703ea070bd92afd Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 13 Sep 2019 21:43:23 +0300 Subject: [PATCH] kiss: fix build duplicates --- kiss | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/kiss b/kiss index c63c06b..5635513 100755 --- a/kiss +++ b/kiss @@ -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