aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-02-22 12:52:59 +0000
committermerakor <cem@ckyln.com>2021-02-22 12:52:59 +0000
commit0678c86dd96be0c0efa658f422253375bd93a8a7 (patch)
tree27e1b59c6888a2f18d4b3197bb5f88f82a755319 /src
parent86f797b7ff488954655f1dde44c3cb14a6eefe0e (diff)
downloadcpt-0678c86dd96be0c0efa658f422253375bd93a8a7.tar.gz
pkg_gentree(): exit instead of returning error with unknown key
FossilOrigin-Name: 36c7a2c98510370887251c35cc19e7c1a42893d12677fe9c1a93b541d9d56b1c
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 0578d8b..90468e6 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1885,7 +1885,7 @@ pkg_gentree() (
x) make_deps=first-nomake ;;
r) reverse=1 ;;
n) nonl=1 ;;
- *) return 1
+ *) die "pkg_gentree: Unknown key '$op'"
esac
done
pkg_depends "$1" tree "${make_deps:+first}"