yum.update_md

Update metadata (updateinfo.xml) parsing.

yum.update_md.safe_iterparse(filename)

Works like iterparse, but hides XML errors (prints a warning).

UpdateNoticeException

class yum.update_md.UpdateNoticeException

Bases: exceptions.Exception

An exception thrown for bad UpdateNotice data.

UpdateNotice

class yum.update_md.UpdateNotice(elem=None)

Bases: object

A single update notice (for instance, a security fix).

get_metadata()

Return the metadata dict.

xml()

Generate the xml for this update notice object

UpdateMetadata

class yum.update_md.UpdateMetadata(repos=[])

Bases: object

The root update metadata object.

add(obj, mdtype='updateinfo')

Parse a metadata from a given YumRepository, file, or filename.

add_notice(un)

Add an UpdateNotice object. This should be fully populated with data, esp. update_id and pkglist/packages.

get_applicable_notices(pkgtup)

Retrieve any update notices which are newer than a given std. pkgtup (name, arch, epoch, version, release) tuple. Returns: list of (pkgtup, notice) that are newer than the given pkgtup,

in the order of newest pkgtups first.
get_notice(nvr)

Retrieve an update notice for a given (name, version, release) string or tuple.

get_notices(name=None)

Return all notices.

notices

Return all notices.

yum.update_md.main()

update_md test function.

Table Of Contents

Previous topic

yum.transactioninfo

Next topic

yum.yumRepo

This Page