Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite0e4962

Browse files
timlauConan-Kudo
authored andcommitted
use DNF API and Set installed to false
1 parent17a99b1 commite0e4962

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

‎python/dnfdaemon/server/__init__.py‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -251,14 +251,12 @@ def get_groups(self):
251251
forcategoryinself.base.comps.categories_iter():
252252
cat= (category.name,category.ui_name,category.ui_description)
253253
cat_grps= []
254-
forobjincategory.group_ids:
255-
# get the dnf group obj
256-
grp=self.base.comps.group_by_pattern(obj.name)
257-
ifgrp:
258-
installed=True# if grp is not None, it's installed
259-
elem= (grp.id,grp.ui_name,
260-
grp.ui_description,installed)
261-
cat_grps.append(elem)
254+
forgrpincategory.groups_iter():
255+
# FIXME: dnf API dont tell up if a group is installed
256+
installed=False
257+
elem= (grp.id,grp.ui_name,
258+
grp.ui_description,installed)
259+
cat_grps.append(elem)
262260
cat_grps.sort()
263261
all_groups.append((cat,cat_grps))
264262
all_groups.sort()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp