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:
Cole Robinson 2017-08-07 17:41:52 -04:00
parent cc72f74f97
commit 9e7426b64f

View File

@ -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"