From 0748e91bbe652bfbec098c94bc5de83623f137ee Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 22 Feb 2021 12:53:58 +0000 Subject: pkg_gentree(): add 'f' key to include the package itself FossilOrigin-Name: 7cd4336b0ea7c9571aa6c843afb3efdec5677f0d10d939ede95bacb9a0ed2fac --- src/cpt-lib.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index 90468e6..9590a85 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1882,13 +1882,14 @@ pkg_gentree() ( for op in $(sepchar "$2"); do case "$op" in b) deps="$(pkg_get_base nonl)" ;; + f) make_deps='' ;; x) make_deps=first-nomake ;; r) reverse=1 ;; n) nonl=1 ;; *) die "pkg_gentree: Unknown key '$op'" esac done - pkg_depends "$1" tree "${make_deps:+first}" + pkg_depends "$1" tree "$make_deps" eval set -- "$deps" pkg_order "$@" if [ "$reverse" ]; then eval set -- "$redro"; else eval set -- "$order"; fi -- cgit v1.2.3