[X2Go-Commits] [x2goclient] 81/94: pyhoca/cli/frontend.py: Check directly after authentication, if the remote host has the X2Go Server software installed.
git-admin at x2go.org
git-admin at x2go.org
Fri Dec 15 21:06:54 CET 2023
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to annotated tag 0.6.1.0
in repository x2goclient.
commit 5dcd5633dfa55ba9e8ae66a8045f7371108e3864
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Sat Nov 10 22:05:17 2018 +0000
pyhoca/cli/frontend.py: Check directly after authentication, if the remote host has the X2Go Server software installed.
---
debian/changelog | 2 ++
pyhoca/cli/frontend.py | 3 +++
2 files changed, 5 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 3578f841..58607d2f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ pyhoca-cli (0.6.0.1-0x2go1) UNRELEASED; urgency=medium
[ Mike Gabriel ]
* New upstream release (0.6.0.1):
- Fix failing password-only authentication.
+ - pyhoca/cli/frontend.py: Check directly after authentication, if the
+ remote host has the X2Go Server software installed.
* debian/control:
+ Set Section: from "python" to "x11". More appropriate.
diff --git a/pyhoca/cli/frontend.py b/pyhoca/cli/frontend.py
index 76ad7624..411045af 100644
--- a/pyhoca/cli/frontend.py
+++ b/pyhoca/cli/frontend.py
@@ -653,6 +653,9 @@ class PyHocaCLI(x2go.X2GoClient):
password = None
passphrase = None
+ if not self.is_x2goserver(self.x2go_session_hash):
+ self._runtime_error('the remote server does not have the X2Go Server software installed', exitcode=1337)
+
def MainLoop(self):
"""\
Start the main loop of this application.
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2goclient.git
More information about the x2go-commits
mailing list