Skip to content
Snippets Groups Projects
Commit d42c99fc authored by Tim Lauridsen's avatar Tim Lauridsen Committed by Neal Gompa (ニール・ゴンパ)
Browse files

make then group installed check work as in current dnf

parent 0d5447ce
Branches
Tags
No related merge requests found
......@@ -252,7 +252,12 @@ class DnfDaemonBase(dbus.service.Object, DownloadCallback):
cat = (category.name, category.ui_name, category.ui_description)
cat_grps = []
for grp in category.groups_iter():
# FIXME: dnf API dont tell up if a group is installed
# FIXME: dnf.base.history is not public API
# this is how dnf cli does it in dnf group list
group_found = self.base.history.group.get(grp.id)
if group_found:
installed = True
else:
installed = False
elem = (grp.id, grp.ui_name,
grp.ui_description, installed)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment