kiss: fix build duplicates

This commit is contained in:
Dylan Araps 2019-09-13 21:43:23 +03:00
parent f353983fd7
commit 72aa4d7772

18
kiss
View File

@ -341,14 +341,22 @@ pkg_build() {
# also checks checksums, downloads sources and ensure all dependencies # also checks checksums, downloads sources and ensure all dependencies
# are installed. # are installed.
log "Resolving dependencies"
for pkg; do
case $explicit in
*" $pkg "*) ;;
*)
pkg_depends "$pkg" explicit
# Store the explicit packages so we can handle them differently # Store the explicit packages so we can handle them differently
# below. Dependencies are automatically installed but packages # below. Dependencies are automatically installed but packages
# passed to KISS aren't. # passed to KISS aren't.
explicit=" $* " explicit="$explicit $pkg "
explicit_build=" $* " explicit_build="$explicit_build $pkg "
;;
log "Resolving dependencies" esac
for pkg; do pkg_depends "$pkg" explicit; done done
# If an explicit package is a dependency of another explicit # If an explicit package is a dependency of another explicit
# package, remove it from the explicit list as it needs to be # package, remove it from the explicit list as it needs to be