Tryag File Manager
Home
-
Turbo Force
Current Path :
/
usr
/
lib
/
python2.4
/
site-packages
/
rhsm
/
Upload File :
New :
File
Dir
//usr/lib/python2.4/site-packages/rhsm/profile.pyc
mò Wx[Uc @ sŒ d k Z d k Z d k l Z e i e ƒ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d e f d „ ƒ YZ d „ Z h d e <Z d S( N( s ourjsont InvalidProfileTypec B s t Z d Z RS( sI Thrown when attempting to get a profile of an unsupported type. ( t __name__t __module__t __doc__( ( ( t0 /usr/lib/python2.4/site-packages/rhsm/profile.pyR s t Packagec B s; t Z d Z d e e d „ Z d „ Z d „ Z d „ Z RS( s7 Represents a package installed on the system. i c C s: | | _ | | _ | | _ | | _ | | _ | | _ d S( N( t namet selft versiont releaset archt epocht vendor( R R R R R R R t from_dict( ( R t __init__! s c C sL h d | i <d | i <d | i <d | i <d | i <d | i <S( s6 Returns a dict representation of this packages info. R R R R R R N( R R R R R R R ( R ( ( R t to_dict* s c C sŸ t | ƒ t | ƒ j o t Sn | i | i j og | i | i j oT | i | i j oA | i | i j o. | i | i j o | i | i j o t Sn t S( sV Compare one profile to another to determine if anything has changed. N( t typeR t othert FalseR R R R R R t True( R R ( ( R t __eq__5 s rc C s d | i | i | i f S( Ns <Package: %s %s %s>( R R R R ( R ( ( R t __str__F s ( R R R t NoneR R R R ( ( ( R R s t RPMProfilec B s/ t Z d d „ Z d „ Z d „ Z d „ Z RS( Nc C sä g | _ | oŒ t i d ƒ | i ƒ } t i | ƒ } x¥ | D]U } | i i t d | d d | d d | d d | d d | d d | d ƒ ƒ q? WnE t i d ƒ t i ƒ } | i d ƒ | i ƒ } | i | ƒ | _ d S( s• Load the RPM package profile from a given file, or from rpm itself. NOTE: from_file is a file descriptor, not a file name. s Loading RPM profile from file.R R R R R R s Loading current RPM profile.iÿÿÿÿN( R t packagest from_filet logt debugt readt json_buffert jsont loadst pkg_dictst pkg_dictt appendR t rpmt TransactionSett tst setVSFlagst dbMatcht installedt _accumulate_profile( R R R% R( R R R! ( ( R R L s&