Bug 469430 - Groups support filters group list to those in categories
Summary: Groups support filters group list to those in categories
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-packagekit
Version: 9
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Richard Hughes
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-31 19:57 UTC by James Antill
Modified: 2009-04-15 16:34 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-04-15 16:34:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description James Antill 2008-10-31 19:57:48 UTC
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.

Comment 1 Richard Hughes 2008-11-06 11:04:06 UTC
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?

Comment 2 James Antill 2008-11-06 16:01:07 UTC
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.

Comment 3 Richard Hughes 2008-11-07 09:53:36 UTC
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?

Comment 4 James Antill 2008-11-07 15:27:30 UTC
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)
                if grp:

...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".

Comment 5 Tim Lauridsen 2008-11-07 15:53:03 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.