Bug 469430
Summary: | Groups support filters group list to those in categories | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | James Antill <james.antill> |
Component: | gnome-packagekit | Assignee: | Richard Hughes <richard> |
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 9 | CC: | rhughes, richard, robin.norwood, tim.lauridsen |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-04-15 16:34:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
James Antill
2008-10-31 19:57:48 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? 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) 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". 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. |