diff options
-rw-r--r-- | src/cpt-lib.in | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 9590a85..692b9b5 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1868,6 +1868,12 @@ pkg_get_base() ( while read -r pkgname _; do [ "${pkgname##\#*}" ] || continue set -- "$@" "$pkgname" + while read -r dep; do + contains "$*" "$dep" && continue + set -- "$@" "$dep" + done <<EOF +$(pkg_gentree "$pkgname" x) +EOF done < "$CPT_ROOT/etc/cpt-base" if [ "$nonl" ]; then printf '%s ' "$@"; else printf '%s\n' "$@"; fi ) |