Skip to content
Snippets Groups Projects
Commit 8aeb4d4d authored by Tim Lauridsen's avatar Tim Lauridsen
Browse files

fix problems with gpgkey import

(fixes timlau/yumex-dnf#71)
parent a6cf02d9
Branches
Tags
No related merge requests found
......@@ -580,6 +580,7 @@ class DnfDaemonBase(dbus.service.Object, DownloadCallback):
msgs = [str(e)]
#print("DEBUG:", msgs)
except GPGError as e: # GPG errors
rc = 1
msgs = [str(e)]
#print("DEBUG:", msgs)
except Error as e: # Other transaction errors
......@@ -716,8 +717,11 @@ class DnfDaemonBase(dbus.service.Object, DownloadCallback):
continue
elif result == 1:
# FIXME: Base.getKeyForPackage not public dnf api
try:
self.base.getKeyForPackage(po,
fullaskcb=self._handle_gpg_import)
except dnf.exceptions.Error as e:
raise GPGError(str(e))
else:
raise GPGError(errmsg)
return 0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment