mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-03-09 08:58:27 +03:00
engine: Drop offer to install askpass package (bz 1354304)
Dealing with packagekit across desktops and in a consistent manner is a pain. This code path is rarely exercised and difficult to test, so just fallback to giving a hint error message and let the user install if they care.
This commit is contained in:
parent
cc72f74f97
commit
9e7426b64f
@ -643,17 +643,11 @@ class vmmEngine(vmmGObject):
|
||||
elif (conn.get_uri_transport() == "ssh" and
|
||||
re.search(r"ssh-askpass", tb)):
|
||||
|
||||
if self.config.askpass_package:
|
||||
ret = packageutils.check_packagekit(
|
||||
None,
|
||||
self.err,
|
||||
self.config.askpass_package)
|
||||
if ret:
|
||||
conn.open()
|
||||
return
|
||||
|
||||
hint += _("You need to install openssh-askpass or "
|
||||
"similar\nto connect to this host.")
|
||||
askpass = (self.config.askpass_package and
|
||||
self.config.askpass_package[0] or
|
||||
"openssh-askpass")
|
||||
hint += _("You need to install %s or "
|
||||
"similar\nto connect to this host.") % askpass
|
||||
show_errmsg = False
|
||||
else:
|
||||
hint += _("Verify that the 'libvirtd' daemon is running\n"
|
||||
|
Loading…
x
Reference in New Issue
Block a user