manatools / dnfdaemon

DBus daemon for doing package action with the dnf package manager
GNU General Public License v2.0
12 stars 16 forks source link

GetRepo crashes when invoked #32

Closed anaselli closed 4 years ago

anaselli commented 4 years ago

Pdb) p self.backend.GetRepo(repo_id , sync=True) gi.repository.GLib.GError: g-io-error-quark: GDBus.Error:org.freedesktop.DBus.Python.AttributeError: Traceback (most recent call last): File "/usr/lib64/python3.7/site-packages/dbus/service.py", line 707, in _message_cb retval = candidate_method(self, args, keywords) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/init.py", line 68, in newFunc rc = func(*args, **kwargs) File "/usr/share/dnfdaemon/dnfdaemon-system", line 224, in GetRepo value = self.get_repo(repo_id) File "/usr/lib/python3.7/site-packages/dnfdaemon/server/init.py", line 302, in get_repo repo_conf = dict([(c, getattr(repo, c)) for c in repo._option.keys()]) File "/usr/lib/python3.7/site-packages/dnf/conf/config.py", line 65, in getattr option = getattr(self._config, name) File "/usr/lib64/python3.7/site-packages/libdnf/conf.py", line 1647, in getattr = lambda self, name: _swig_getattr(self, ConfigRepo, name) File "/usr/lib64/python3.7/site-packages/libdnf/conf.py", line 80, in _swig_getattr raise AttributeError("'%s' object has no attribute '%s'" % (class_type.name, name)) AttributeError: 'ConfigRepo' object has no attribute '_option'