From: =?utf-8?q?IOhannes_m_zm=C3=B6lnig?= <zmoelnig@iem.at>
Date: Tue, 7 Feb 2023 08:48:51 +0100
Subject: Use '--self' for the "self-upgrading" hint

Origin: upstream
Forwarded: not-needed
Applied-Upstream: a992d74d434cac7defa027b8a49162f3f122af78
Last-Update: 2023-02-07


---
 developer/deken | 17 +++++++++++------
 1 file changed, 11 insertions(+), 6 deletions(-)

--- deken.orig/developer/deken
+++ deken/developer/deken
@@ -125,6 +125,14 @@
     bail_install
 }
 
+tell_reinstall() {
+cat <<EOF
+You can run 'deken install --self' or 'deken upgrade --self' anytime to
+ re-install (or upgrade) your Deken installation.
+EOF
+
+}
+
 bail_requirements() {
     rm -f "${DEKEN_HOME}/requirements.txt"
     cat >/dev/stderr <<EOF
@@ -133,10 +141,8 @@
  - 'python3-dev'
  - 'libffi-dev'
  - 'libssl-dev'
-You can run 'deken install' or 'deken upgrade' anytime to
- re-install (or upgrade) your Deken installation.
 EOF
-
+    tell_reinstall >/dev/stderr
     exit 1
 }
 
@@ -148,10 +154,9 @@
     cat >/dev/stderr <<EOF
 It seems your version of deken is out of sync.
 ($script has version ${DEKEN_VERSION}, but your installation is $1)
-You can run 'deken install' or 'deken upgrade' anytime to
- re-install (or upgrade) your Deken installation.
-
 EOF
+    tell_reinstall >/dev/stderr
+    echo >/dev/stderr
 }
 
 install_virtualenv() {
