kiss: nit

This commit is contained in:
Dylan Araps 2021-07-06 21:41:30 +03:00
parent caff0ef981
commit c716a4b996
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

10
kiss
View File

@ -661,11 +661,8 @@ pkg_build_all() {
# Order the argument list and filter out duplicates. # Order the argument list and filter out duplicates.
log "Resolving dependencies" log "Resolving dependencies"
# Mark packages passed on the command-line separately from those # Mark packages passed on the command-line explicit.
# detected as dependencies. We need to treat explicitly passed packages # Also resolve dependencies for all explicit packages.
# differently from those pulled in as dependencies.
#
# This also resolves all dependencies and stores the result in '$deps'.
for pkg do for pkg do
pkg_depends "$pkg" expl filter '' '' pkg_lint pkg_depends "$pkg" expl filter '' '' pkg_lint
explicit="$explicit $pkg " explicit="$explicit $pkg "
@ -678,8 +675,7 @@ pkg_build_all() {
set -- set --
# If an explicit package is a dependency of another explicit package, # 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 # remove it from the explicit list.
# dependency.
for pkg in $explicit; do for pkg in $explicit; do
contains "$deps" "$pkg" || set -- "$@" "$pkg" contains "$deps" "$pkg" || set -- "$@" "$pkg"
done done