aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-02-22 12:53:58 +0000
committermerakor <cem@ckyln.com>2021-02-22 12:53:58 +0000
commit0748e91bbe652bfbec098c94bc5de83623f137ee (patch)
treef9c3019d8e533dd46927e94e6f0a92f7ac267383
parent0678c86dd96be0c0efa658f422253375bd93a8a7 (diff)
downloadcpt-0748e91bbe652bfbec098c94bc5de83623f137ee.tar.gz
pkg_gentree(): add 'f' key to include the package itself
FossilOrigin-Name: 7cd4336b0ea7c9571aa6c843afb3efdec5677f0d10d939ede95bacb9a0ed2fac
-rw-r--r--src/cpt-lib.in3
1 files changed, 2 insertions, 1 deletions
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