Package yum :: Module update_md :: Class UpdateNotice
[hide private]
[frames] | no frames]

Class UpdateNotice

source code


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

Instance Methods [hide private]
 
__init__(self, elem=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
__getitem__(self, item)
Allows scriptable metadata access (ie: un['update_id']).
source code
 
__setitem__(self, item, val) source code
 
__str__(self)
str(x)
source code
 
get_metadata(self)
Return the metadata dict.
source code
 
_parse(self, elem)
Parse an update element:
source code
 
_parse_references(self, elem)
Parse the update references:
source code
 
_parse_pkglist(self, elem)
Parse the package list:
source code
 
_parse_package(self, elem)
Parse an individual package:
source code
 
xml(self)
Generate the xml for this update notice object
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, elem=None)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Overrides: object.__init__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

str(x)

Overrides: object.__str__
(inherited documentation)

_parse(self, elem)

source code 

Parse an update element:

   <!ELEMENT update (id, synopsis?, issued, updated,
                     references, description, pkglist)>
       <!ATTLIST update type (errata|security) "errata">
       <!ATTLIST update status (final|testing) "final">
       <!ATTLIST update version CDATA #REQUIRED>
       <!ATTLIST update from CDATA #REQUIRED>

_parse_references(self, elem)

source code 

Parse the update references:

   <!ELEMENT references (reference*)>
   <!ELEMENT reference>
       <!ATTLIST reference href CDATA #REQUIRED>
       <!ATTLIST reference type (self|cve|bugzilla) "self">
       <!ATTLIST reference id CDATA #IMPLIED>
       <!ATTLIST reference title CDATA #IMPLIED>

_parse_pkglist(self, elem)

source code 

Parse the package list:

   <!ELEMENT pkglist (collection+)>
   <!ELEMENT collection (name?, package+)>
       <!ATTLIST collection short CDATA #IMPLIED>
       <!ATTLIST collection name CDATA #IMPLIED>
   <!ELEMENT name (#PCDATA)>

_parse_package(self, elem)

source code 

Parse an individual package:

   <!ELEMENT package (filename, sum, reboot_suggested)>
       <!ATTLIST package name CDATA #REQUIRED>
       <!ATTLIST package version CDATA #REQUIRED>
       <!ATTLIST package release CDATA #REQUIRED>
       <!ATTLIST package arch CDATA #REQUIRED>
       <!ATTLIST package epoch CDATA #REQUIRED>
       <!ATTLIST package src CDATA #REQUIRED>
   <!ELEMENT reboot_suggested (#PCDATA)>
   <!ELEMENT filename (#PCDATA)>
   <!ELEMENT sum (#PCDATA)>
       <!ATTLIST sum type (md5|sha1) "sha1">