yum.comps

yum.comps.parse_boolean(strng)
yum.comps.parse_number(strng)

CompsObj

class yum.comps.CompsObj

Bases: object

Group/Category helper object.

ui_description

Return the “description” of the object for the current locale.

ui_name

Return the “name” of the object for the current locale.

Group

class yum.comps.Group(elem=None)

Bases: yum.comps.CompsObj

Group object parsed from group data in each repo. and merged.

add(obj)

Add another group object to this object

xml()

write out an xml stanza for the group object

Category

class yum.comps.Category(elem=None)

Bases: yum.comps.CompsObj

Category object parsed from group data in each repo. and merged.

add(obj)

Add another category object to this object

xml()

write out an xml stanza for the category object

Comps

class yum.comps.Comps(overwrite_groups=False)

Bases: object

compile(pkgtuplist)

compile the groups into installed/available groups

return_categories(pattern, ignore_case=True)

return all categories which match either by glob or exact match

return_group(grpid)

Return the first group which matches

return_groups(group_pattern, case_sensitive=False)

return all groups which match either by glob or exact match

xml()

returns the xml of the comps files in this class, merged

yum.comps.main()

Table Of Contents

Previous topic

yum.callbacks

Next topic

yum.config

This Page