Red Hat Bugzilla – Bug 469430
Groups support filters group list to those in categories
Last modified: 2009-04-15 12:34:36 EDT
Description of problem:
"yum grouplist" lists all groups user_visible groups
Turning on the "Use category group list" only shows those groups that are in a Category.
This misses "Fedora Eclipse" from the Fedora repos. ... and anything from a local repo. that isn't in a Category.
Sorry, I don't understand -- do you think the PK group list is missing packages or categories? Do you have any idea how the yum code gets a different answer to PK?
PK is missing groups.
The reason is that it does a strict two level tree of categories on the top level and then groups under those categories. But some of the groups aren't in a category. Yum just lists groups, so doesn't care ... in fact without the yum-categories plugin you can't even see the categories data from the yum Cmd line UI.
Ohh, right. Can we add those extra groups to an "Other" category perhaps, or is is this something that has to be hardcoded in PackageKit?
Doing that automatically in the yum API would be a bad idea, atm. you have:
cats = [cat.categoryid for cat in self.yumbase.comps.categories]
for cat in cats:
grps = self.comps.get_groups(cat)
for grp_id in grps:
grp = self.yumbase.comps.return_group(grp_id)
...so the only way to make it "automagically" work is for the yum API to create a fake category which has all the groups in it that aren't in any other category.
Pirut uses "Uncategorized".
I have added some changes to the pk yumComps to add all non categorized groups to an 'other' category
so self.comps.get_groups('other') will return all the non categorized groups.
I have not made yumBacked code yet.
but running 'sudo yumComps.py' will show the groups.