|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /proc/self/root/proc/self/root/usr/lib/python2.4/site-packages/rpmUtils/ |
Upload File : |
m
ODc @ s2 d k Z d k Z d k Z d f d YZ d S( Nt Updatesc B s t Z d Z d Z d Z d Z d Z d Z d Z d Z d Z
d Z d
Z e
e
d Z e
e
d Z e
e
d
Z d e
e
d Z d e
e
d Z d e
d Z e
e
d Z d Z RS( sK This class computes and keeps track of updates and obsoletes.
initialize, add installed packages, add available packages (both as
unique lists of name, epoch, ver, rel, arch tuples), add an optional dict
of obsoleting packages with obsoletes and what they obsolete ie:
foo, i386, 0, 1.1, 1: bar >= 1.1.c C s g | _ | | _ | | _ h | _ d | _ d d d d d d d g | _ t i
i | _ | i
| i d | _ | i
| i d | _ h | _ d | _ d S(
Ni t kernels
kernel-smpt glibcs kernel-hugemems kernel-enterprises
kernel-bigmems kernel-BOOTi ( t selft changeTupt instlistt installedt availlistt availablet rawobsoletest exactarcht
exactarchlistt rpmUtilst archt getCanonArcht myarcht
makeNADictt installdictt availdictt updatesdictt debug( R R R ( ( t4 /usr/lib/python2.4/site-packages/rpmUtils/updates.pyt __init__ s c C s | i o | GHn d S( N( R R t msg( R R ( ( R t
debugprint5 s
c C s h } x | D] \ } } } } } | i | | f p g | | | f <n | | | f i | | | f | oQ | i | d f p g | | d f <n | | d f i | | | | f q
q
W| S( s return lists of (e,v,r) tuples as value of a dict keyed on (n, a)
optionally will return a (n, None) entry with all the a for that
n in tuples of (a,e,v,r)N( t
returndictt pkglistt nt at et vt rt has_keyt appendt Nonelistst None( R R R"