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
|
elif (conn.get_uri_transport() == "ssh" and
|
||||||
re.search(r"ssh-askpass", tb)):
|
re.search(r"ssh-askpass", tb)):
|
||||||
|
|
||||||
if self.config.askpass_package:
|
askpass = (self.config.askpass_package and
|
||||||
ret = packageutils.check_packagekit(
|
self.config.askpass_package[0] or
|
||||||
None,
|
"openssh-askpass")
|
||||||
self.err,
|
hint += _("You need to install %s or "
|
||||||
self.config.askpass_package)
|
"similar\nto connect to this host.") % askpass
|
||||||
if ret:
|
|
||||||
conn.open()
|
|
||||||
return
|
|
||||||
|
|
||||||
hint += _("You need to install openssh-askpass or "
|
|
||||||
"similar\nto connect to this host.")
|
|
||||||
show_errmsg = False
|
show_errmsg = False
|
||||||
else:
|
else:
|
||||||
hint += _("Verify that the 'libvirtd' daemon is running\n"
|
hint += _("Verify that the 'libvirtd' daemon is running\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user