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