ok

Mini Shell

Direktori : /proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/yum/
Upload File :
Current File : //proc/self/root/proc/self/root/proc/self/root/lib/python2.7/site-packages/yum/__init__.pyc

�
8M�bc@s(dZddlZddlZddlZddlZd�ZddlZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
ZddlZddlZddlZddlZejjad�Zejjad�ZddlZddlmZmZddlZddlZddlZddlm Z m!Z!m"Z"m#Z#ddl$m%Z%ddl&Zddl'Z'ddl(Z(dd	l)m*Z*ddl+Z+dd
l,m-Z-m.Z.ddl/Z/ddl0Z0ddl1m2Z2m3Z3ddl4m5Z5dd
l6m7Z7m8Z8m9Z9ddl:Z:ddl;Z;ddl<Z<ddl=Z=ddl>Z>ddl?Zddl@Zddl@mAZAmBZBddlCZddlDZDddlEZEeEjFdejG�ddlHmIZImJZJddlHmKZKmLZLmMZMddlHmNZNmOZOddlPTddlQmRZRmSZSddlmTZTmUZUmVZVddlWmXZXmYZYddlZZZddl[m\Z[ddl1m]Z]dZ^e_ge^j`d�D]Zaebea�^q��Zce]jdjede^7_edd$d��YZfdd%d��YZgd d&d!��YZhd"e:jifd#��YZjdS('s
The Yum RPM software updater.
i����NcCsXttd�sdSy6tgtjD]}t|�^q#�}||kSWndSXdS(s� Check if rpm is at least the current vertup. Can return False/True/None
        as rpm hasn't had version info for a long time. t__version_info__N(thasattrtrpmtNonettupleRtint(tvertuptnumtvi((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_rpm_ver_atleasts(cOs
t||�S(N(t_wrap_yum_i18n__(targstkwargs((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_5scOs
t||�S(N(t_wrap_yum_i18n_P_(RR((s0/usr/lib/python2.7/site-packages/yum/__init__.pytP_8s(tParsingErrortConfigParser(tarchDifferencetcanCoinstalltArchStoragetisMultiLibArch(t
compareEVR(tRepoStorage(tConfigPreProcessort
varReplace(t
URLGrabbertURLGrabError(t
format_number(tpackagesNewestByNametpackagesNewestByNameArchtListPackageSack(tLibLVMErrort
lvmerr2strtignore(t
parsePackagestcomparePoEVR(tYumAvailablePackagetYumLocalPackagetYumInstalledPackage(t
YumUrlPackagetYumNotFoundPackage(t*(tRPMTransactiontSimpleCliCallBack(t
to_unicodetto_strt
exception2msg(t	DeltaInfotDeltaPackage(tproxy(tdefault_grabbers3.4.3t.s yum/t_YumPreBaseConfcBseZdZd�ZRS(sDThis is the configuration interface for the :class:`YumBase`
    configuration.  To change configuration settings such as whether
    plugins are on or off, or the value of debuglevel, change the
    values here. Later, when :func:`YumBase.conf` is first called, all
    of the options will be automatically configured.
    cCs�d|_d|_t|_tjf|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_d|_d|_dS(Ns/etc/yum/yum.conft/(tfntroottTruetinit_pluginstpluginst	TYPE_COREtplugin_typesRt	optparsert
debuglevelt
errorleveltdisabled_pluginstenabled_pluginstsyslog_identtsyslog_facilityt
syslog_devicetarcht
releasevertuuid(tself((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt__init__zs													(t__name__t
__module__t__doc__RJ(((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR5sst_YumPreRepoConfcBseZdZd�ZRS(s#This is the configuration interface for the repos configuration
    configuration.  To change configuration settings such what
    callbacks are used, change the values here. Later, when
    :func:`YumBase.repos` is first called, all of the options will be
    automatically configured.
    cCs^d|_d|_d|_d|_d|_d|_d|_d|_d|_	d|_
dS(N(Rtprogressbartmulti_progressbartcallbacktfailure_callbacktinterrupt_callbacktconfirm_functgpg_import_functgpgca_import_functcachedirtcache(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRJ�s									(RKRLRMRJ(((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRN�st_YumCostExcludecBs eZdZd�Zd�ZRS(sW This excludes packages that are in repos. of lower cost than the passed
        repo. cCs"t|�|_t|�|_dS(N(tweakreftrepot_repos(RIR[trepos((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRJ�scCsMxF|jj�D]5}|j|jjkr/Pn||jjkrtSqWtS(N(R\tlistEnabledtcostR[tsackt_pkgtup2pkgsR9tFalse(RItpkgtupR[((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt__contains__�s(RKRLRMRJRd(((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRY�s	tYumBasec	BsP	eZdZd�Zd�Zd�Zd�Zdd�Zddee	j
feeed	�Zd
�Z
eedd�Zd
�Zeed�Zd�Zd�Zd�Zeeeeeed�Zd�Zd�Zd�Zd�Zed�Zeed�Zd�Zeed�Zeed�Zd�Zd�Z d�Z!d�Z"d �Z#d!�Z$d"�Z%d#�Z&d$�Z'd%�Z(d&�Z)e*d'd(�d)d*�d+d,�d-d.�Z+e*d'd/�d)d0�d+d1�d-d2�Z,e*d'd3�d)d4�d+d5�d-d6�Z-e*d'd7�d)d8�d+d9�d-d:�Z.e*d'd;�d)d<�d+d=�d-d>�Z/e*d'd?�d+d@�d-dA�Z0e*d'dB�d)dC�d+dD�d-dE�Z1e*d'dF�d)dG�d+dH�d-dI�Z2e*d'dJ�d)dK�d+dL�d-dM�Z3e*d'dN�d)dO�d+dP�d-dQ�Z4e*d'dR�d)dS�d+dT�d-dU�Z5e*d'dV�d)dW�d+dX�d-dY�Z6e*d'dZ�d)d[�d+d\�d-d]�Z7d^�Z8d_�Z9ed`�Z:eda�Z;db�Z<dc�Z=iedd�Z>iede�Z?df�Z@dg�ZAdh�ZBdi�ZCdj�ZDdk�ZEdl�ZFdm�ZGdn�ZHdo�ZIeeeegdp�ZJdq�ZKeedr�ZLds�ZMedt�ZNdu�ZOePdv�ZQedw�ZReSdxdydz��ZTeSd{��ZUeSd|��ZVd}�ZWd~�ZXeed�ZYd��ZZd��Z[d��Z\d��Z]d��Z^d��Z_d��Z`d��Zad��Zbd��Zcd��Zdd��Zed��Zfd�eeeed��Zgd��Zheeeed��Zid��Zjed��Zkeed��Zld��Zmd��Zneed��Zodeeed��Zpd��Zqd��Zrd��Zsgeeed��Zted��Zugeed��Zved��Zwed��Zxd��Zyd��Zzd��Z{d��Z|d��Z}d��Z~ed��Zeeed��Z�d��Z�d��Z�d��Z�ed��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�d��Z�ed��Z�d��Z�ed��Z�d��Z�d��Z�d��Z�eeed��Z�ed��Z�eed��Z�ed��Z�ed��Z�ed��Z�d��Z�ed��Z�eSd���Z�d��Z�eed��Z�d��Z�d��Z�eed��Z�d�d��Z�eed��Z�eed��Z�ed��Z�ed��Z�d��Z�eeed��Z�d��Z�d��Z�d��Z�ed��Z�ed��Z�d��Z�ged��Z�eeed�d��Z�d��Z�d��Z�d��Z�eed��Z�d��Z�eeed��Z�d��Z�d��Z�RS(�s�This is a primary structure and base class. It houses the
    objects and methods needed to perform most things in yum. It is
    almost an abstract class in that you will need to add your own
    class above it for most real use.
    cCsbtjj|�d|_d|_d|_d|_d|_d|_	d|_
d|_d|_d|_
d|_d|_d|_g|_i|_i|_tjd�|_tjd�|_tjd�|_t|_t|�|_i|_|j�g|_d|_ t!�|_"t#�|_$t%�|_&t'�|_(g|_)d|_*i|_+dS(Nsyum.YumBasesyum.verbose.YumBasesyum.filelogging.YumBasei(,tdepsolvetDepsolveRJRt_conft_tsInfot_rpmdbt_upt_compst_historyt_igroupst_pkgSackt	_lockfilet_tagst_upinfot_fssnapt
_ts_save_filetskipped_packagest_not_found_at_not_found_itloggingt	getLoggertloggertverbose_loggertfile_loggerRbt_override_sigchecksRR\trepo_setoptstdisablePluginst
localPackagestmediagrabberRRFR5tpreconfRNtprerepoconftsettrun_with_package_namest_cleanupt	exit_codetupdateinfo_filters(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRJ�sB																		
				cCs�y=|j�|j�|j�x|jD]
}|�q+WWnBtjk
r�}|jjdt|�t	|�|j
f�nXdS(NsException %s %s in %s ignored(tcloset
closeRpmDBtdoUnlockR�tErrorst	RepoErrorR{tdebugtreprtstrt__del__(RItcbte((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s


cCs[|jdk	r|jj�n|jdk	r>|jj�n|jrW|jj�ndS(s#Close the history and repo objects.N(RmRthistoryR�RntigroupsR\(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s	cCs
tj�S(s/Factory method returning TransactionData object(ttransactioninfotTransactionData(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_transactionDataFactory�sicCst|j_||j_dS(s
Do a default setup for all the normal or necessary yum
        components.  This function is really just a shorthand for
        testing purposes.

        :param cache: whether to run in cache only mode, which will
           run only from the system cache
        N(RbR�R:tconfRX(RIRX((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoGenericSetupss/etc/yum/yum.confR6cCs�tjtd�tjdd�t|d�r�||j_||j_||j_	||j_
||j_||j_||j_
n|jS(sQDeprecated.  Perform configuration setup.

        :param fn: the name of the configuration file to use
        :param root: the root directory to use
        :param init_plugins: whether to initialize plugins before
           running yum
        :param plugin_types: a tuple containing the types to plugins
           to load
        :param optparser: the option parser to use for configuration
        :param debuglevel: the minimum debug logging level to output
           messages from
        :param errorlevel: the minimum error logging level to output
           messages from
        s9doConfigSetup() will go away in a future version of Yum.
t
stackleveliR�(twarningstwarnR
R�tYumFutureDeprecationWarningRR�R7R8R:R=R>R?R@R�(RIR7R8R:R=R>R?R@((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
doConfigSetup
sc	KsH|rtjd�n|jr&|jStj�}|rrx7dD],}||kr?t|j|||�q?q?Wn|jj}|jj}|jj}|jj	}|jj
}|jj}	|jj}
|jj
}|jj}|jj}
|jj}|jj}|jj}|jj}|jj}|r?|jj|�n|jj}|dkrstjj|�rsd}ntj|||�}||_|jj|_|r�||_n|jr�tjj a!tjj"a#n|	dkr�|	|_n|
dkr|
|_n|
dkr|
|_n|dkr6||_n|dkrN||_n|d
kr�|j%d
krrd}q�tjj&d
|j'�}n|dkr�||_n|j(|j|j|j|j|j�|r|j)r|j*|||j+|j,||�ntj-|�|_|jj.}|dkr:|t/j0_.n|jj1dt/j0_2|`x$|j3j4D]}|j5j6|�qcW|j)j7d�|j3j8|_8tj9�|j3_:tjj;d|j3j<|j8j=dd�|j8j=dd�f�|j3_>|j?|j3j:|j3j@�|jAjBdtj�|�|j)j7d�|jS(s�
        Parse and load Yum's configuration files and call hooks initialise
        plugins and logging. Uses self.preconf for pre-configuration,
        configuration. s2Use .preconf instead of passing args to _getConfigR7R8R:R=R>R?R@RARBs/etc/yum/yum.confs
/etc/yum.confR6is/timedhostst
postconfigs%s/repos/%s/%s/tbasearchs	$basearchRGs$releaseversConfig time: %0.3ftinit(	sfnsrootsinit_pluginssplugin_typess	optparsers
debuglevels
errorlevelsdisabled_pluginssenabled_pluginsN(CR�R�RhttimetsetattrR�R7R8R:R=R>R?R@RARBRCRDRERGRFRHt
setup_archt	canonarchtostpathtexiststconfigtreadStartupConfigR�t
gaftonmodetyumti18nt
dummy_wrapperR
tdummyP_wrapperRRtinstallroott
_getsysvertdistroverpkgtdoLoggingSetupR;t
doPluginSetupt
pluginpathtpluginconfpathtreadMainConfigtmax_connectionsR3toptsRWt
timedhostsR�thistory_record_packagesR�taddtruntyumvartgeteuidtuidtnormpatht
persistdirtgett_repos_persistdirtdoFileLogSetuptlogfileR{R�(RIRtconf_sttargR7R8R:R=R>R?R@RARBRCRDRERGRFRHtstartupconftmctpkgname((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_getConfig,s�	
!				
"s/dev/logcCstj|||||�dS(s�Perform logging related setup.

        :param debuglevel: the minimum debug logging level to output
           messages from
        :param errorlevel: the minimum error logging level to output
           messages from
        :param syslog_ident: the ident of the syslog to use
        :param syslog_facility: the name of the syslog facility to use
        :param syslog_device: the syslog device to use
        N(t
logginglevelsR�(RIR?R@RCRDRE((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s
cCstj|||j�dS(s�Set up the logging file.

        :param uid: the user id of the current user
        :param logfile: the name of the file to use for logging
        N(R�t
setFileLogR�(RIR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��sc	Cs||dkr"tj|�d}nt|d|jj�}t�}y|j|�Wn(tk
r~}t	j
t|���nXx�|j�D]�}|d	kr�q�nt
j|�}|r�|jjd|||j|�f�q�ny|j||�}	Wn2t	jt	j
fk
r/}|jj|�q�n"X||	_||	_|jj|	_x�t|j�D]�}
t
j|
�s|qantj|	j|
�raxp|j|
jD][}t|	|�s�d}|jj||	j|f�nt|	|t |j|
|��q�WqaqaW|	j|jkr�xv|j|	jjD]^}t|	|�sid}|jj||	j|f�nt|	|t |j|	j|��q.Wn|r�||	�r�q�n|	j!r7x|	j"|	j#|	j$fD]b}
|
s�q�ntj%|
tj&�s�d}|	j'r$|jj||	j|
f�nt(|	_)q�q�Wny|j*j+|	�Wq�t	jk
rs}|jj|�q�Xq�WdS(
sRead in repositories from a config .repo file.

        :param repofn: a string specifying the path of the .repo file
           to read
        :param repo_age: the last time that the .repo file was
           modified, in seconds since the epoch
        itvarstmaint	installeds!Bad id for repo: %s, byte = %s %ds-Repo %s did not have a %s attr. before setopts2Repo %s forced skip_if_unavailable=True due to: %sN(smains	installed(,RR�tstatRR�R�RtreadfpRR�tConfigErrorR/tsectionstmisctvalidate_repoidRztwarningtfindtreadRepoConfigR�trepo_config_agetrepofileR�tbase_persistdirtsortedR~tre_globtfnmatchtidtitemsRR�tgetattrtssl_check_cert_permissionst	sslcacertt
sslclientcerttsslclientkeytaccesstR_OKtenabledR9tskip_if_unavailableR\R�(RItrepofntrepo_agetvalidatet
confpp_objtparserR�tsectiontbadtthisrepotitopttmsgR7((s0/usr/lib/python2.7/site-packages/yum/__init__.pytgetReposFromConfigFile�sn			 + *			 cCs4|jj}|j|jj|�x|jjD]�}tjj|jjd|�rl|jjd|}ntjj	|�}tjj
|�r/x�ttjd|��D]{}tj
|tj�s�|jjtd�t|��q�ntj|�d}||kr|}n|j|d|�q�Wq/q/WdS(s	Read in repositories from the main yum conf file, and from
        .repo files.  The location of the main yum conf file is given
        by self.conf.config_file_path, and the location of the
        directory of .repo files is given by self.conf.reposdir.
        R6s	%s/*.repos!Skipping unreadable repository %siR�N(R�tconfig_file_ageR�tconfig_file_pathtreposdirR�R�R�R�R�tisdirR�tglobR�R�RzR�R
R�R�(RIR�R�R�tthisrepo_age((s0/usr/lib/python2.7/site-packages/yum/__init__.pytgetReposFromConfigs  	cCs�tj|�}y|j|||j�Wn5tk
r`}td||f�}tj|�nX|js�||_|j	j
td�|�nt|j�|_t|dd�|_
|jj|_|jj|jj�||_|j|_|S(s
Parse an INI file section for a repository.

        :param parser: :class:`ConfigParser` or similar object to read
           INI file values from
        :param section: INI file section to read
        :return: :class:`yum.yumRepo.YumRepository` instance
        s'Repository %r: Error parsing config: %ss8Repository %r is missing name in configuration, using idt
_old_cachedirt(tyumRepot
YumRepositorytpopulateR�t
ValueErrorR
R�R�tnameRzterrorR-R�told_base_cache_dirRWtbasecachedirR�tupdatetcfgtasynct_async(RIR�R�R[R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�9s"			cCstj�|_dS(sDisable yum plugins.N(R;tDummyYumPlugins(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRXscCsRt|jtj�r*ttd���ntj|||||||�|_dS(s�Initialise and enable yum plugins.
        Note: _getConfig() will also initialise plugins if instructed
        to. Only call this method directly if not calling _getConfig()
        or calling doConfigSetup(init_plugins=False).

        :param optparser: the :class:`OptionParser` instance to use
           for this run
        :param plugin_types: a sequence specifying the types of plugins to load.
           This should be a sequence containing one or more of the
           yum.plugins.TYPE_...  constants. If None (the default), all plugins
           will be loaded
        :param searchpath: a list of directories to look in for plugins. A
           default will be used if no value is specified
        :param confpath: a list of directories to look in for plugin
           configuration files. A default will be used if no value is
           specified
        :param disabled_plugins: a list of plugins to be disabled    
        :param enabled_plugins: a list plugins to be enabled
        splugins already initialisedN(t
isinstanceR;t
YumPluginstRuntimeErrorR
(RIR>R=t
searchpathtconfpathRARB((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�]scCs)tjtd�tjdd�|j�S(s%Deprecated.  Set up the rpm database.s8doRpmDBSetup() will go away in a future version of Yum.
R�i(R�R�R
R�R�t	_getRpmDB(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoRpmDBSetupyscCs�|jdkr�tj�}|jjtjtd��tj	d|j
jd|j
jdd|j
j
�|_|jjdtj�|�n|jS(s@sets up a holder object for important information from the rpmdbsReading Local RPMDBR8RGR�srpmdb time: %0.3fN(RjRR�R{tlogR�tDEBUG_4R
trpmsacktRPMDBPackageSackR�R�R�R�R�(RItrpmdb_st((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�s
!cCse|jdk	r+d|j_|jj�nd|_d|_d|_d|_d|_d|_dS(s6Closes down the instances of rpmdb that could be open.N(	RjRttstdropCachedDatat_tsRiRktcompsR�(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s					cCs|`d|_dS(N(RR(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	_deleteTs�scCs/tjtd�tjdd�|j|t�S(s�Deprecated. Set up the yum repositories.

        :param thisrepo: the repository to set up.  If None, all
           repositories will be set up
        :return: the set up repos
        s7doRepoSetup() will go away in a future version of Yum.
R�i(R�R�R
R�R�t	_getReposR9(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoRepoSetup�scCs�t|d�rm|j|jjdkr`t|d�r`t|jj�}|jj||_n|j�nt|d�rS|j}|`|jj	|j
|j�|j|j_|jj
|j�|jj|j�|j|j_|j|j_|j|j_|jdk	r+|jj|j�n|jdk	rS|jj|j�qSn|r�tj�}|jj|�|jjdtj�|�n|jS(sB For each enabled repository set up the basics of the repository. R�R6Rsrepo time: %0.3fN(RR�R�tlenRWRR�R�R]tsetProgressBarRORPRQtsetFailureCallbackRRtsetInterruptCallbackRSRTRURVRtsetCacheDirRXtsetCacheR�R\tdoSetupR{R�(RIR�R(tirR�trepo_st((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR �s6
	
!cCs|`t|�|_dS(N(R\R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	_delRepos�scCs5tjtd�tjdd�|jd|d|�S(s4Deprecated. Populate the package sacks with information
        from our repositories.

        :param archlist: a list of the names of archs to include.  If
           None, all arches are set up
        :param thisrepo: the repository to use.  If None, all enabled
           repositories are used
        s7doSackSetup() will go away in a future version of Yum.
R�itarchlistR�(R�R�R
R�R�t	_getSacks(RIR,R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoSackSetup�s	cCs�|jdk	r"|dkr"|jS|dkr7d}n|jj|�}|jjtd��tj�}|s�|jj	}ni}x|D]}d||<q�W|jj
�j|�|jjd|�|jj
�s�|jj
�S|jj
�|_|j
�|jj|�|dkr0|jj�}nx(|D] }|j|�|j
|�q7W|jjd�|jj�|j�|jjdtj�|�|jS(szpopulates the package sacks for information from our repositories,
           takes optional archlist for archs to includeR�sSetting up Package Sacksitwhichtexcludespkgsack time: %0.3fN(RoRR]t	findReposR{R�R
R�RFR,tgetPackageSacktsetCompatArchstpopulateSacktexcludePackagestexcludeArchsR^tincludePackagesR;R�tbuildIndexestcostExcludePackages(RIR,R�R]tsack_sttarchdictRFR[((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR-�s:	






cCsod|_x_|jjj�D]K}t|d�r>|j�qtjtd�td�t	j
dd�qWdS(szreset the package sacks back to zero - making sure to nuke the ones
           in the repo objects, too - where it matterst
_resetSacks2repo object for repo %s lacks a _resetSack method
s%therefore this repo cannot be reset.
R�iN(RRoR]tvaluesRR<R�R�R
R�R�(RIR[((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	_delSacks!s	

cCs)tjtd�tjdd�|j�S(s}Deprecated. Set up the update object in the base class and populate the
        updates, obsoletes, and other lists.
        s9doUpdateSetup() will go away in a future version of Yum.
R�i(R�R�R
R�R�t_getUpdates(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
doUpdateSetup2scCs@|jr|jS|jjtd��tj�}tjj|jj	�|j
j	��|_|jjdkr}d|j_nt
|d�r�|jj|j_|`nT|jjr�tj�}|j
jdt�|j_|jjdtj�|�n|jj|j_|jj|j_|jj|j_|jj|j_|jj|j_|jj|j_tj�}|jj�|jjdtj�|�|jjr�tj�}|jj�|jjdtj�|�ntj�}|jj �|jjd	tj�|�|jjd
tj�|�|jS(snsetups up the update object in the base class and fills out the
           updates, obsoletes and others listssBuilding updates objectiit_up_obs_hacktnewestsup:Obs Init time: %0.3fsup:simple updates time: %0.3fsup:obs time: %0.3fsup:condense time: %0.3fsupdates time: %0.3f(!RkR{R�R
R�trpmUtilstupdatestUpdatestrpmdbt
simplePkgListtpkgSackR�R?RRAtrawobsoletest	obsoletestreturnObsoletesR9RFR�tmyarchtmultilibt_is_multilibR,t	_archlisttcompatarchest_multilib_compat_archest	exactarcht
exactarchlistt	doUpdatestdoObsoletestcondenseUpdates(RItup_sttobs_inittup_pr_sttobs_stt
cond_up_st((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR?;s@	*	!

!
cCs2tjtd�tjdd�d|_|j�S(s2Deprecated. Create and populate the groups object.s8doGroupSetup() will go away in a future version of Yum.
R�iN(R�R�R
R�R�RRt
_getGroups(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoGroupSetupks	cCsK|dkr>|jr>x#|jj�D]}t|_q%Wq>n||_dS(N(RR\tsortRbtgroups_addedRl(RItvalR[((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_setGroupsts
	c
Cs|jr|jStj�}|jjtjtd��g}|jx�|jj	�D]w}|j
rw|j|�qUn|j�s�t
jd|�ny|j�}Wnt
jk
r�}qUX|j|�qUW|jj}tjd|�|_|jjdkr�|jjd7_xI|jjD];}tj�}||_|_t|_|jj|�q"WxL|jjD];}	tj �}
|	|
_|
_!t|
_|jj"|
�qnWnx�|D]�}|j
r�q�n|jjtjtd�|�|j#�}|s#td�|}|j$j%|�q�ny|jj&|�WnKt
j't
j(fk
r�}td�|t)|�f}|j$j%|�q�Xt|_
q�W|jjd	kr�t
j'td
��n|jjdkr�|jj*|j+j,��n|jj-dtj�|�|jS(s�create the groups object that will store the comps metadata
           finds the repos with groups, gets their comps data and merge it
           into the group objectsGetting group metadatasRepository '%s' not yet setuptoverwrite_groupstobjectsis%Adding group file from repository: %ss0Failed to retrieve group file for repository: %ss1Failed to add groups file for repository: %s - %sis%No Groups Available in any repositorysgroup time: %0.3f(.RlR�R{RR�RR
RHR]tlistGroupsEnabledR_tappendtreadyR�R�tgetGroupLocationtRepoMDErrorR�RbRtCompst
group_commandt
compscountR�tgroupstGroupRtgroupidR9t_weakt	add_grouptenvironmentstEnvironmentt
environmentidtadd_environmentt	getGroupsRztcriticalR�tGroupsErrortCompsExceptionR/tcompileRFRGR�(
RItgroup_sttreposWithGroupsR[tgroupremoteR�t	overwritetgidtgrptevgidtenvt	groupfileR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR\�sl	
	
		
	
cCsWtj�}|jjtjtd��|jdkr2tj	j
�|_x�|jj�D]�}d|j
j�krzqYn|jjtjtd�|�yD|jd�}tj|dd|j�}|jj|j|�WqYtjtjfk
r*}td�|t|�f}|jj|�qYXqYWn|jjdtj�|�|jS(	sT create the tags object used to search/report from the pkgtags 
            metadatasGetting pkgtags metadatatpkgtagssAdding tags from repository: %sspkgtags.sqlitetcacheds.Failed to add Pkg Tags for repository: %s - %sstags time: %0.3fN(R�R{RR�RR
RqRR�t	pkgtag_dbtPackageTagsR]R^trepoXMLt	fileTypest
retrieveMDR�trepo_gen_decompressRXR�R�R�R�tPkgTagsErrorR/RzRvR�(RIttag_stR[ttag_mdt
tag_sqliteR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_getTags�s*
	cCsLtj�}|jjtjtd��|jd
kr'tj	d�}tj	d�}t
jd|d|�|_|jx�|j
j�D]�}d|jj�kr�q�n|jjtjtd�|�y|jj|�Wq�tjk
r}td�|t|�f}|jj|�q�Xq�Wn|jjd	tj�|�|jS(sX create the Update Info object used to search/report the updateinfo
            metadatasGetting updateinfo metadatas
yum.update_mdsyum.verbose.update_mdRztvloggert
updateinfos&Adding Update Info from repository: %ss1Failed to add Update Info for repository: %s - %ssupdateinfo time: %0.3fN(R�R{RR�RR
RrRRxRyt	update_mdtUpdateMetadataRHR]R^R�R�R�R�RhR/RzRvR�(RItupi_stRzR�R[R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_getUpdateinfo�s,
cCs]|jdkrV|jjd}tjjd|jjd|d|jjd�|_n|jS(seauto create the history object that to access/append the transaction
           history information. s/historyR8tdb_pathRGN(	RmRR�R�R�R�t
YumHistoryR�R�(RItpdb_path((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_getHistoryscCsR|jdkrK|jj}tjjd|jjd|d|j�|_n|jS(s: create the fssnap object used to query/create snapshots. R8tdevicesRzN(	RsRR�tfssnap_devicesR�tfssnapshotst_FSSnapR�R|(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_getFSsnapscCsA|jdkr:|jjd}tjjd|�|_n|jS(skauto create the installed groups object that to access/change the
           installed groups information. s/groupsR�N(RnRR�R�R�R�tInstalledGroups(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_getIGroups&stfgetcCs
|j�S(N(R (RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt<lambda>/stfsetcCst|d|�S(NR\(R�(RItvalue((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�0stfdelcCs
|j�S(N(R+(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�1stdocs0Repo Storage object - object of yum repositoriescCs
|j�S(N(R-(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�3scCst|d|�S(NRo(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�4scCs
|j�S(N(R>(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�5ss3Package sack object - object of yum package objectscCs
|j�S(N(R�(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�7scCst|d|�S(NRh(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�8scCst|dd�S(NRh(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�9ssYum Config ObjectcCs
|j�S(N(R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�;scCst|d|�S(NRj(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�<scCst|dd�S(NRj(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�=ssRpmSack objectcCs
|j�S(N(t
_getTsInfo(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�?scCs
|j|�S(N(t
_setTsInfo(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�@scCs
|j�S(N(t
_delTsInfo(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�Ass"Transaction Set information objectcCs
|j�S(N(t_getActionTs(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�CscCs
|j�S(N(R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�DssTransactionSet objectcCs
|j�S(N(R?(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�FscCst|d|�S(NRk(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�GscCst|dd�S(NRk(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�HssUpdates ObjectcCs
|j�S(N(R\(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�JscCs
|j|�S(N(Ra(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�KscCst|dd�S(NRl(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�LssYum Component/groups objectcCs
|j�S(N(R�(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�NscCst|d|�S(NRm(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�OscCst|dd�S(NRm(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�PssYum History ObjectcCs
|j�S(N(R�(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�SscCst|d|�S(NRn(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�TscCst|dd�S(NRn(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�UssYum Installed Groups ObjectcCs
|j�S(N(R�(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�XscCst|d|�S(NRq(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�YscCst|dd�S(NRq(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�ZssYum Package Tags ObjectcCs
|j�S(N(R�(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�]scCst|d|�S(NRr(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�^scCst|dd�S(NRr(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�_ssYum Update Info ObjectcCs
|j�S(N(R�(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�bscCst|d|�S(NRs(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�cscCst|dd�S(NRs(R�R(RI((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�dssYum FS snapshot ObjectcCs�t}|jrixW|jj�D]C}||jjkr\d|jj|krSqqbt}qt}qWn|r�td�}|jj	t
j|�|jjdd�ndS(s�Convenience function to populate the repositories with the
        filelist metadata, and emit a log message only if new
        information is actually populated.
        t	filelistss)Importing additional filelist informationtmdtypeN(
RbRHR]R^R`taddedR9R
R{RR�tINFO_2R4(RIt	necessaryR[R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoSackFilelistPopulategs		
cCsy|jjdd�rdSd	\}}t|d�rX|jjd|jjd}}n|td�|j|��dS(
s�Output a message that the given tool requires the yum-utils
        package, if it not installed.

        :param func: the function to output the message
        :param prog: the name of the tool that requires yum-utils
        Rs	yum-utilsNRttermtboldtnormals1The program %s is found in the yum-utils package.(RR(RFtcontainsRR�tMODER
t	_try_bold(RItfunctprogthibegthiend((s0/usr/lib/python2.7/site-packages/yum/__init__.pytyumUtilsMsgs$cCs�t|_|ritjd|jj�ritd�}|jj|�|j	|jjd�t
jd�n|jj
d�t
j
�}|j�\}}|j�|jjr�|jjtjtd��|j�nd}|dkr|jjrtj|jj��}nd|j_|j||�\}}|jj
dd	|d
|�|jjr�|j|dk�\}}|j||dt�\}}n|jjdk	r�|jj j!�n|dk|_g}|dkr
|jj"r
|j#j$r
|jj%dt&�}ni}xe|D]]}	|j'|	j(�r8qn|	j)|kr`|	j(g||	j)<qn||	j)j*|	j(�qWg}
g}x�|D]�}t+||�dkr�xO|jj,|g�D]5}
|jj%|
j-t.�r�q�n||j*|
�q�Wn||d
}xx||dD]h}|j/|�r4qntd�}|sjtd�i|d6}||}n|j*|||f�qWq�W|r�d}t|_|}nt0t1g}g}|dkr�|jjr�t2|jj�}|jj%d|�}ni}x�|D]�}	|dk	r,|	j-|kr,n:|dk	rQ|	j)|d
krQqn|	j)|krfqn|	j)|kr�g||	j)<n||	j)j*|	j-�qWx�|jj,|j3��D]w}|dk	r�|j)|d
kr�|||d
kr�q�n|j)|kr
q�n|j-||j)kr�||j)=q�q�Wx�|j3�D]�}|dk	r}||d
kr}|||d
kr}qAnxj|jj4d|�D]S}	|	j)|kr�q�n|	j-||j)kr�q�n|	j5t&kr�||j)=q�q�WqAW|r:d}g}x+t6|�D]}|j*td�|�q
Wt|_n|dkrh|jj7rh|j8dt9�qhnt:j;|jj<kr�xT|jj=�D]@}|j>dkr�|j'|j(�r�|j?|j(�r�Pq�q�q�Wn|jj@dt
j
�|�||fS(s'Go through the packages in the transaction set, find them
        in the packageSack or rpmdb, and pack up the transaction set
        accordingly.

        :param unfinished_transactions_check: whether to check for
           unfinished transactions before building the new transaction
        t
yumlibpaths/There are unfinished transactions remaining. You might consider running yum-complete-transaction, or "yum-complete-transaction --cleanup-only" and "yum history redo last", first to finish them. If those don't work you'll have to try removing/installing packages by hand (maybe package-cleanup can help).syum-complete-transactionit
preresolves*--> Finding unneeded leftover dependenciesitpostresolvetrescodetrestringit
clear_skippedis%Protected multilib versions: %s != %ss� Multilib version problems found. This often means that the root
cause is something else and multilib version checking is just
pointing out that there is a problem. Eg.:

  1. You have an upgrade for %(name)s which is missing some
     dependency that another package requires. Yum is trying to
     solve this by installing an older version of %(name)s of the
     different architecture. If you exclude the bad architecture
     yum will tell you what the root cause is (which package
     requires what). You can try redoing the upgrade with
     --exclude %(name)s.otherarch ... this should give you an error
     message showing the root cause of the problem.

  2. You have multiple architectures of %(name)s installed, but
     yum can only see an upgrade for one of those architectures.
     If you don't want/need both architectures anymore then you
     can remove the one with the missing update and everything
     will work.

  3. You have duplicate versions of %(name)s installed already.
     You can use "yum check" to get yum show these errors.

...you can also use --setopt=protected_multilib=false to remove
this checking, however this is almost never the correct thing to
do as something else is very likely to go wrong (often causing
much more problems).

Rs)Trying to remove "%s", which is protectedtautoR�sDepsolve time: %0.3fN(ARbt_depsolving_failedR�tfind_unfinished_transactionsR�R�R
RzRvR�R�tsleepR;R�tresolveDepst_limit_installonly_pkgstclean_requirements_on_removeR{RR�R�t_remove_old_depsRtprotected_packagestget_running_kernel_pkgtupRFt
readOnlyTSRt
_doSkipBrokenttsInfotchangedRoRHRtprotected_multilibRFRMtgetMembersWithStatetTS_INSTALL_STATEStallowedMultipleInstallstpoRReR"tsearchNamesRctTS_REMOVE_STATEStverEQtTS_OBSOLETEDtTS_ERASER�tkeyst
matchNaevrtoutput_stateR�t
autosavetstsave_tsR9RtRPMPROB_FILTER_OLDPACKAGEtprobFilterFlagst
getMemberstts_statet_enable_oldpackage_flagR�(RItunfinished_transactions_checkR�tds_stR�R�tkern_pkgtupttxmbrstversttxmbrtfinet	xrestringR�tpkgtfirsttothertbigmsgtprotect_statest	protectedtbad_togotipkgtm((s0/usr/lib/python2.7/site-packages/yum/__init__.pytbuildTransaction�s�
	

!$

	
		
!cCs�|jjry|dkry|r*g|_ntj�}|j||�\}}|j�|jjdtj�|�n||fS(s! do skip broken if it is enabled isSkip-Broken time: %0.3f(R�tskip_brokenRuR�t_skipPackagesWithProblemst_printTransactionR{R�(RIR�R�R�tsb_st((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�Ys
!cs���fd�}��fd��d}t�}t��|}d}x�t�j�dkr�|dkr�|d7}�jj�d�_�jjd|�|dkr��jjd�Pn�j	��j
�}t�j�}	t�}
xR�jD]G\}}}
�jj|j
�s.||||
�q�||||
�q�Wxc|
D][}�j|�}xC|D];}|j|�|�kre|jdkre�|�qeqeWqIW|
s�|d7}|d	kr�Pq��jjd
��jjdt�n�jtdt�\}}t�j�}|	|t�krk|d7}|d	krEPqq�jjd
��jjdt�nd}|dkrK�jjd��jjdt��j��j��j�\}}qKqKW|dkr{�jjd|��jjtd��g|D]}|^q	}|j�x@|D]8}td�t|�|jjf}�jj|�q,W�jj|�n�jjd�d|fS||fS(s= Remove the packages with depsolve errors and depsolve again cs+|s
dS�j|||��|�dS(N(t_getPackagesToRemove(R�tdepTreettoRemove(t_remove_from_sackRI(s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_removekscs��j|�}xw|D]o}|jdkr|�kr�jjdt|���jj|��jj|j��j	|�qqWdS(NR�s.SKIPBROKEN: removing %s from pkgSack & updates(
t_getPackagesToRemoveAllArchtrepoidR{R�R�RHt
delPackagetupRcR�(R�tpkgsR�(tremoved_from_sackRI(s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�rs
iis1SKIPBROKEN: ########### Round %i ################isSKIPBROKEN: Too many loops R�isESKIPBROKEN: resetting already resolved packages (no packages to skip)thardtskipping_brokensISKIPBROKEN: resetting already resolved packages (transaction not changed)s0SKIPBROKEN: sanity check the current transactionsSKIPBROKEN: took %i rounds s1
Packages skipped because of dependency problems:s    %s from %ss$Skip-broken could not solve problemsN(R�R"tpo_with_problemsRFttransactionResetRtinstalledFileRequiresR{R�R�t
_buildDepTreeR�R�Rct_skipFromTransactionR�Rt
resetResolvedR9R�t_checkMissingObsoletedt_checkUpdatedLeftoverstinfoR
R^R�R[R�Rutextend(RIR�R�R�tcountt
skipped_pot
orig_restringtloopingR�tstartTsR�R�twpoterrtskippedtskiptendTstptskipped_listR�((R�RRIs0/usr/lib/python2.7/site-packages/yum/__init__.pyR�hs|		$

	
	








"
cCsG|r
dS|d|d|d|d|df}d|krCdS|S(NRRFtepochtversiontrelease(R(RIRt
nevra_dictRc((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_add_not_found�s
cCsN|dkr'|r'|j||�}n|dkr7dSt|�|j|<dS(N(RR!R)Rv(RIRR Rc((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_add_not_found_a�s
cCsN|dkr'|r'|j||�}n|dkr7dSt|�|j|<dS(N(RR!R)Rw(RIRR Rc((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_add_not_found_i�s
cCs�x�|jjdttg�D]�}x^|jD]S}|jj|j�s,|jj||j	�}|j
jd||j	f�q,q,Wx\|jD]Q}|jj|j�s�|j
jd|j	|f�|jj
|j	j�q�q�WqWdS(s� 
        If multiple packages is obsoleting the same package
        then the TS_OBSOLETED can get removed from the transaction
        so we must make sure that they, exist and else create them
        s+SKIPBROKEN: Added missing obsoleted %s (%s)s*SKIPBROKEN: Remove extra obsoleted %s (%s)N(R�R�Rt
TS_OBSOLETINGR�RJR�RctaddObsoletedR�R{R�tobsoleted_bytremove(RIR�R�tobs((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR
�s"$cCs�x|jjdtg�D]e}x\|jD]Q}|jj|j�s)|jjd|j	|f�|jj
|j	j�q)q)WqWdS(s� 
        If multiple packages is updated the same package
        and this package get removed because of an dep issue
        then make sure that all the TS_UPDATED get removed.
        s(SKIPBROKEN: Remove extra updated %s (%s)N(R�R�Rt
TS_UPDATEDt
updated_byR�RcR{R�R�R'(RIR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRs
c
Cs�g}|jjr�|j\}}}}}xd|jjD]F}|||||f}|jj|||||�}	|j|	�q7Wn
|j|�|S(s, get all compatible arch packages in pkgSack(RFRMRcR,RHtsearchNevraRRe(
RIR�RtntaR�tvtrRctmatched((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�s
cCs�g}|j\}}}}}x�|jjD]r}|||||f}|jj|�r+xB|jj|�D]+}	|	j}
|j|
�}|j|�qkWq+q+W|S(N(	RcRFR,R�R�R�R�t_removePoFromTransactionR(RIR�RR,R-R�R.R/RcR�R�R((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR!s	cCsng}|jj|j�rj|jjdt|��|jj|j�|jdksj|j|�qjn|S(Ns(SKIPBROKEN: removing %s from transactionR�(	R�R�RcR{R�R�R'RRe(RIR�R((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR1.scCsNi}xA|jD]6}x-|jD]"}|j|g�j|j�q WqW|S(s& create a dictionary with po and deps (R�t
depends_ont
setdefaultReR�(RIR�R�tdep((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR
7s
$cCs@x9|j�D]+\}}|GHx|D]}dG|GHq%Wq
WdS(Ns	(t	iteritems(RIttreeR�tlR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_printDepTree@s
cCsidt6dt6dt6dt6dt6dt6dt6dt6}|jj	t
jd	t|j
��x�t|j
�D]�}d
||j|jf}|jj	t
j|�xItt|j��D]2\}}d||f}|jj	t
j|�q�WqqW|jj	t
jdd
d�dS(NR
tinstallttrueinstallteraset	obsoletedt
obsoletingt	availabletupdateds/SKIPBROKEN: Current Transaction : %i member(s) sSKIPBROKEN:  %-11s : %s s%SKIPBROKEN:                   %s : %ss
SKIPBROKEN:%si<t=(t	TS_UPDATEt
TS_INSTALLtTS_TRUEINSTALLR�R�R$tTS_AVAILABLER)R{RR�tDEBUG_2R"R�R�R�R�R�t	relatedto(RItstateR�R�R�trel((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�Fs 

#"cCs�|j|�x�|jj|j�D]{}x8|j|jD]&}|j|�|j|||�q:Wx7|jD],\}}|j|�|j|||�qnWq#W|j|||�dS(s2
        get the (related) pos to remove.
        N(R�R�R�RcRDRJt_getDepsToRemoveRF(RIR�tdeptreeR�R�R�trelativetrelation((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�Zs


cCs�x�|j|g�D]�}t}xe|jj|j�D]N}|j|�|jr[t}Pnx%|j|j	D]}|j
|�qlWq5W|r�qn||kr�qn|j
|�|j|||�qWdS(N(R�RbR�R�Rct	removeDepR2R9RDRJR�RI(RIR�RJR�R4t	more_depsR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRIis
	
cs*�dkr|jj�n|dkr6ddg}n|dkrctd����fd�}n|r|�td��nt|�tg�tt��fkr�t|�}nt|g�}td�|D��}d}g}|jtd��r�itd	�d
6td�d6}	x�|jj�D]|}
|
j	j
|krFq(n|
jdkr�t}x*|
j
D]}|j
|kret}PqeqeW|r�q(q�n|j|
�q(Wn|jtd��r/t|jj�}
xZ|jj|
�D]C}
|
j	j
|krq�n|
jj
|krq�n|j|
�q�Wn|jtd��r�xW|jj�D]C}
|
j	j
|krrqTn|
jj
|kr�qTn|j|
�qTWn|jtd��r�x?|jj�D]+}
|
j	j
|kr�q�n|j|
�q�Wn|t|��xt|�D]}
�|
�qW|S(Ntdependenciest
duplicatessF** Found %d pre-existing rpmdb problem(s), 'yum check' output follows:cs|p��|�S(N((tproblems(R�tout(s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��ss&Warning: RPMDB altered outside of yum.css|]}|jVqdS(N(Rc(t.0R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pys	<genexpr>�sitallsmissing requirestrequiressinstalled conflictt	conflictsR<tprovides(sallRO(sallRP(salls	obsoleted(sallsprovides(RRzR�R
ttypeR�tintersectionRFtcheck_dependenciesR�RctproblemR9RVRbReR�tinstallonlypkgstcheck_duplicatest	duplicatetcheck_obsoletedt	obsoletertcheck_providesR"R�(RIRRR�tchkcmdtheadertignore_pkgstignore_pkgtupstrctprobstprob2uitprobtfoundtrestiopkgs((R�RRs0/usr/lib/python2.7/site-packages/yum/__init__.pyt_rpmdb_warn_checks{sl'	c!sqt�fd�}�jjs*�jjr��jjr�td�}�jjd-krptj	ddd|��q��j
j|�n�jjr:�jjs��jjr:�jjr:t}y�jj
�}Wn5tk
r}�j
jt|��t}g}nXt|dd	�d
t�}d}d}g}	xd|D]\}
|d
7}||
dkrn|
d}d
}q8n|�jjkr8|	j|
d�q8q8Wy�jjd|	�}Wn5tk
r�}�j
jt|��t}g}nXt|�r�j
jtd�t|��q:|r:�j
jtd��q:n�jjrr�jjtj�rr�jjrr|�n�jjd�x4�jj�D]#}|j r��j!j"d�Pq�q�W�jj#s��jjtj�r��j$j%�}n�t&�j!�}
�j'j(d|
�}�j'j)dt�d}�j*j+�}|d.k	rQ|j-}ng}|d.kso||kr��j$j.d.t/�}g|D]}|j0^q�}|d.k	}�j1d|d|�}nd.}t2�d�r��j3r�dj4�j3�}n-t2�d�r'�j5r'dj4�j5�}n�j$j%�}�j*j6||t&�j$��j7||��j8�t2�d�r��j9�n�jjd��j'j:|��j;d.k	rt<�j;d�j=�}�j*j>d|�yt?j@�j;�WqtAtBfk
r}qXnd.�_;�jjCrft?jDd�}|rfyt?jD|�Wqcd}qcXqfn�jj|jEd �}�jjCr�yt?jD|�Wq�q�XntFjG�}d|_H|d.kr�nt|�dkrtd!�}�j
j|�d
|_Hn��jj#ry�jjtj�ryg|D]}tItJ|��^q/}�jjd"��j*jK|d#d|�n�jLjtd$��x"|D]}�jLj|d�q�Wtj	dtd%�d|���jjtj�s��jM�nxvd/D]n}t2||�r�tN||�}ytFjO|�WqitAtBfk
re}�jLjtd(�|�qiXq�q�W�jjtj�s�|jHr��j'jP�n�j'jQt&�j$���jjd)��jjtj�s/d.} t2|d*�r�|jR} n�jS|| ��jjTd+kr/�jUjV�q/n�jjrm�jjtj�rm�jjrm|d,t�n|S(0sOPerform the transaction.

        :param cb: an rpm callback object to use in the transaction
        :return: a :class:`yum.misc.GenericHolder` containing
           information about the results of the transaction
        :raises: :class:`yum.Errors.YumRPMTransError` if there is a
           transaction cannot be completed
        cs�td|rdnd�}y�jj�jj�}Wn/tk
ri}td�t|�}t}nX|s�|r��jjdkr�t	j
ddd	|��q��jj|�n�id
gd6}td�}y"�jj
�jjd
|�}Wn-tk
r$}|dt|�7}g}nX|sr|r_�jjdkr_t	j
ddd	|��qr�jj|�nx4|D],\}}�jjtd�||f�qyWdS(s<Create the pre or post trans snapshot if we have free space.s=Not enough space on logical volumes to create %s FS snapshot.s
post transspre.s3Could not determine free space on logical volumes: ssnapshot-failuretanyR�sAborting transactionterrorssreason=automaticR*sFailed to create snapshotttagss: s(Created snapshot from %s, results is: %sN(ssnapshot-failuresany(ssnapshot-failuresany(R
tfssnapt	has_spaceR�tfssnap_percentageR R!Rbtfssnap_abort_on_errorsR�tYumRPMTransErrorR{RvtsnapshotR(tpostR�RrR�Rptsnapstodevtndev(RI(s0/usr/lib/python2.7/site-packages/yum/__init__.pytcreate_snapshot�s0
"
sSnapshot support not available.sbroken-setupRnR�sAborting transaction.RotkeycSs|d|dfS(Ntctimet
origin_dev((tx((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��streverses<n/a>iiR~tdevR�sDeleted %u snapshots.s3Skipping the cleanup of old snapshots due to errorstpretranssyum-metadata-parsertpatternst	main_onlyR�RdRt tcmdst_shell_history_writethistorybeginR/tsaved_txRsIWarning: scriptlet or other non-fatal errors occurred during transaction.t
historyendisTransaction couldn't start:sCould not run transaction.t	ts_all_fnt
ts_done_fns$Failed to remove transaction file %st	posttranstverify_txmbrRcRw(sbroken-setupsanyN(R�R�(WRbR�tfssnap_automatic_pretfssnap_automatic_postRqR>R
RtR�RuR{Rvtfssnap_automatic_keept
old_snapshotsR R�R!R9R�Ret
del_snapshotsR"RR�RtisTsFlagSetRtRPMTRANS_FLAG_TESTR;R�R]R^t_xml2sqlite_localR�R�thistory_recordR�tfutureRpmDBVersiontlistRFtreturnPackagest
simpleVersionR�tlastRtend_rpmdbversionR�R�R�RmRRtjoinR�tbegRut_store_config_in_historyR�ttransactionResultVersionRttopentreadtwrite_addon_dataR�tunlinktIOErrortOSErrort
reset_nicetniceRQR�t
GenericHoldertreturn_codeR-R.tendRztcleanUsedHeadersPackagesR�tunlink_fRtdropCachedDataPostTransactionR�tverifyTransactionRjR�tsave(!RIR�R{R�tcleanup_failRxR�R�RttodeltsnapR[tfrpmdbvtusing_pkgs_patst
using_pkgstrpmdbvtlastdbvtrpmdb_problemsR�R�Rdtoutput_warntcmdlinet
savetx_msgtoniceRotresultobjectt	errstringRtherrorsR�R7tvTcb((RIs0/usr/lib/python2.7/site-packages/yum/__init__.pytrunTransaction�s
%
	



#
	


		"%
	

%	cs�fd�}|jj}|s3tjd�}n|dkrHd}n'|rodjt|jd���}ntj�}|jj	d�d}x�|j
D]�}|jtkr�|j
jd|j�s|jjtd	�|j�t|_|||�}q�n|||�}|j|j�}|j}	|	j|j_|j|j_|jjd
|j_xk|jjD]]}
|
d
kr�qnn|
dkr�qnn|
dkr�qnnt|jd
|
|jj|
�qnW|r�||j_nd|jjkrd|j_nd|jjkr&d|j_ nd|jjkrGd|j_!nd|jjkrhd|j_"nt#|d�r�|j$r�dj|j$�|j_%n3t#|d�r�|j&r�dj|j&�|j_%n|	j'�}|d#k	rt)|d�|j_*t)|d�|j_+nt,|	t-�r�y[t.j/|	j0��}t)t1|j2��}
t)t1|j3��}|
|j_4||j_5Wq�q�Xn|	j6d#k	r�|	j6|j_7nt#|	j8d�r|	j8j9}|r�|j:d#k	r�t)|j:�|j_4n|rt)|j;�|j_5qnt#|d�r:|j<|j_<nt=j>�}|j?sa|j@sa|jAr|j?rz|j?d}n|j@r�|j@d}n|}d|jkr�|jjB|j_Bnd|jkr�|jj<|j_<n|d#k	r&t)|�|j_Cq&n!|d#k	r&t)|�|j_Bn|jjDrH|jEjF|�qHq�q�Wx	|j
D]�}|jtkrnqV|jtGkr(|j
jd|j�r�|j
jHd|jdt�s�|jjtd|j��t|_|||�}qVq�n|||�}|j
jIjJd|j�}|jK�qV|||�}|jLjMtNjOd|j�qVW|jj	d�|j
jPdtQ�d}|jjDr�|jRjStjT�r�d }|d#k	r�|jU}n|jj	d!�|jEjV||�n|j
jW�|jLjXd"tj�|�d#S($s�Check that the transaction did what was expected, and 
        propagate external yumdb information.  Output error messages
        if the transaction did not do what was expected.

        :param resultobject: the :class:`yum.misc.GenericHolder`
           object returned from the :func:`runTransaction` call that
           ran the transaction
        :param txmbr_cb: the callback for the rpm transaction members
        cs*�dk	r&|d7}�||�n|S(Ni(R(R�R(ttxmbr_cb(s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_call_txmbr_cb�s
s%_install_langsRTRt:tpreverifytransiR�s+%s was supposed to be installed but is not!RGR�RFtvar_t
nocontextsttruetnodocst	noscriptst
notriggersRR�R�iR�tgroup_membertinstalled_byRct
output_statess)%s was supposed to be removed but is not!sWhat is this? %stpostverifytransR�i����R�sVerifyTransaction time: %0.3fN(YR�toverride_install_langsRtexpandMacroR�R�tsplitR�R;R�R�R�R�RFR�R�RzRvR
t	TS_FAILEDtgetInstalledPackageObjectRcRt
yumdb_infot	from_repotreasonR�RGR�tts_install_langsttsflagsttsflag_nocontextst
tsflag_nodocsttsflag_noscriptsttsflag_notriggersRRtcommand_lineR�treturnIdSumRR�t
checksum_typet
checksum_dataRR&R�R�tlocalPkgRtst_ctimetst_mtimetfrom_repo_revisiontfrom_repo_timestamptxattr_origin_urlt
origin_urlR[R�trevisiont	timestampR�R�tgetloginuidRDt
downgradest	reinstallR�t
changed_byR�R�t
sync_alldbR�R�tyumdbtget_packagetcleanR{RR�RER�R9RR�R�R�R�RR�(RIR�R�R�toiltvt_stRR�R�trpotvartcsumtsttlp_ctimetlp_mtimetmdtloginuidtopot
yumdb_itemR�tret((R�s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s�	!		%					
!"
c	Cs�i}x3|jj�D]"}|j|jg�j|�qWt|�dkrRdSt}d}g}xwt|�D]i}|r�xC||D]4}t||j�}|j	j
|j|d|�q�Wn|j||�t
}qqWdS(s�Create an excluder for repositories with higher costs. For
        example, if repo-A:cost=1 and repo-B:cost=2, this function
        will set up an excluder on repo-B that looks for packages in
        repo-B.
        iNsyum.costexcludessexclude.pkgtup.in(R]R^R3R_ReR"RbR�RYR`taddPackageExcluderR�RR9(	RItcostsR/tdonetexidtoreposR_R[tyce((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR9Cs  cCs�d|jjkrdS|sMd|jjkr2dS|jj}d}d}n8|j|jjkrfdS|j�}|j}d|}d}xA|D]9}|d7}d||f}|jj||d	|�q�WdS(
s�Remove packages from packageSacks based on global exclude
        lists, command line excludes and per-repository excludes.

        :param repo: a repo object to use.  If not given, all
           repositories are used
        RTNR�syum.excludepkgssyum.excludepkgs.iis%s.%us
exclude.match(R�tdisable_excludesR0RR�tgetExcludePkgListRHR(RIR[texcludelistRtexid_begRtmatchR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR5]s$		


cCs�x<t|jdg�D]%}|dks7||jkrdSqW|j�}t|�dkradSd}|jj|j|d�d}xD|D]<}|d7}dd	|f}|jj|j|d
|�q�Wd}|jj|j|d�dS(
s�Remove packages from packageSacks based on list of
        packages to include.  

        :param repo: the repository to use
        tdisable_includesRTNisyum.includepkgs.1smark.washedis%s.%usyum.includepkgs.2s
wash.matchsyum.includepkgs.3sexclude.marked(R�R�R�tgetIncludePkgListR"RHR(RIR[tditincludelistRRR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR7}s

 cCsK|jjdkrC|jjr"dS|jj}tjj|�}n|jj}|d|}tjj|�}t	tj
��}x�tr|j||d�}|r�Pn|j
|�}|s�|j|�q�n|tj
�kr�d}Pntd�||f}tjd||��q�W|dkr,dS|dks>t�||_dS(s�Acquire the yum lock.

        :param lockfile: the file to use for the lock
        :raises: :class:`yum.Errors.LockError`
        iNR6i�is4Existing lock %s: another copy is running as pid %s.i(R�R�RXRWR�R�tbasenameR�R�R�tgetpidR9t_lockt_get_lockert_unlockR
R�t	LockErrortAssertionErrorRp(RItlockfileR8tmypidRtoldpidR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoLock�s4	
cCs�t|d�rdS|jjdkr.d}n|dk	rW|jj}|d|}n|jdkrjdS|j}|j|�d|_dS(s�Release the yum lock.

        :param lockfile: the lock file to use.  If not given, the file
           that was given as a parameter to the :func:`doLock` call
           that closed the lock is used
        R�NiR6(RR�R�RR�RpR(RIRR8((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s		
Ri�cCs�tjj|�}yatjj|�s+dStj|tjtjBtjB|�}tj||�tj	|�dSWnct
k
r�}|jtjks�t
d�|t|�f}tj|j|t|���ndSXdS(Niis Could not create lock at %s: %s i(R�R�tdirnameR�R�tO_EXCLtO_CREATtO_WRONLYtwriteR�R�terrnotEEXISTR
R/R�RR(tfilenametcontentstmodetlockdirtfdR�terrmsg((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�s&
!cCstj|�dS(N(R�R�(R#((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�scCs:yt|d�}WnDttfk
rY}td�||f}tjtj|��nXyt|j	��}Wnt
k
r�dSXy4td|�j	�}|j�ddkr�dSWnztk
r5yt
j|d�Wq6tk
r1}|dtjkrdStd�|}tjtj||��q6XnX|S(NR/sCould not open lock %s: %ss
/proc/%d/statitZis#Unable to check if PID %s is active(R�R�R�R
R�RR!tEPERMRtreadlineRRR�R�tkilltESRCH(RR'R�R�RR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�s,

 c	Cs/t}t|�tjkr'|j}n||j�krE||_n|j�sZt}n3t	|j
j�|�}|j|jkr�t}n|r+t
j|�d}t|j�}||kr�|jjr�|j|jj�r�t
j|�q�n|r$td�|jj}td|��q+tSntS(sCheck that the checksum of a remote package matches what we
        expect it to be.  If the checksum of the package file is
        wrong, and the file is also larger than expected, it cannot be
        redeemed, so delete it.

        :param fo: the file object of the package
        :param po: the package object to verify
        :param raiseError: if *raiseError* is 1, and the package
           does not check out, a :class:`URLGrabError will be raised.
           Defaults to 0
        :return: True if the package is verified successfully.
           Otherwise, False will be returned, unless *raiseError* is
           1, in which case a :class:`URLGrabError` will be raised
        :raises: :class:`URLGrabError` if verification fails, and
           *raiseError* is 1
        is\Package does not match intended download. Suggestion: run yum --enablerepo=%s clean metadatai����(RbRXttypestInstanceTypeR#R�t	localpathtverifyLocalPkgR9R&RFR�RcR�R�tlongtsizeR[RXt
startswithtpkgdirR�R
R�R(	RItfoR�t
raiseErrortfailedtylptcursizettotsizeR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	verifyPkg	s*		cCslytj||�}Wn+tjk
rC}tdtd���nX||krhtdtd���ndS(s�Verify that the checksum of the given file matches the
        given checksum.

        :param fo: the file object to verify the checksum of
        :param checksumType: the type of checksum to use
        :parm csum: the checksum to check against
        :return: 0 if the checksums match
        :raises: :class:`URLGrabError` if there is an error performing
           the checksums, or the checksums do not match
        i����sCould not perform checksumi����sPackage does not match checksumi(R�tchecksumR�t	MiscErrorRR
(RIR6tchecksumTypeR�tfilesumR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytverifyChecksumO	scs�d�}i��fd���jj��jjdd|�t��t�jdt��g}d�����fd�}g}x[|D]S}t|d�r�|j	d	kr�q�n||�r�q�n�r��S|j
|�q�Wt�|���d}	}
xv|D]n}t|t
�r^||�r>�j|�q
n|	|j7}	|
|jj7}
n|j
|��|j7�q
W|	r��jjtd
�t|
�t|	�d|	d|
�n�r�t�d
�rlx�|D]�}|jj�jj�s�q�n|jt�jj�}ytj|j�j|�Wq�ytj|j�j|�WqeqeXq�Xq�Wn�jj��j��j �nt!j!�}|}
�}x4t"r�|j#|�tt$j%d�r�t|�dkr�t$j%j&��nd}dg�t��tt$j'd�}x,|D]$}|d7}|������fd�}tj(j)|j*�}i}|r�|j+j,r�|�fd�|d<t"|d<nB|dko��do��|jks�d|t|�|f}ny5|j+j-|d|d|d|j+j.dk|�Wq&t/j0k
rI}�|t1|��q&Xq&W|rdt$j'j2�n�j3��j4�tt$j%d�r�t$j%j&d�n�r#x}|D]r}|jj5d�s�q�n|�kr�t6j7|j�q�|jj8dd�d}tj9|j|�||_q�Wnt}x'�D]}t|t
�s0t"}Pq0q0W�s`|rdPng}d�x1�D])}|j}|j
|��|j7�qwW|
j:|�|�7}�j;��jj<td��q�W|r��r�||
||�n�s$�jjdd|d��ntt$j'd �rFt$j'j=�n�r|�r|�jjtd!��t>j?�j@�n�S("s�Download the packages specified by the given list of
        package objects.

        :param pkglist: a list of package objects specifying the
           packages to download
        :param callback: unused
        :param callback_total: a callback to output messages about the
           download operation
        :return: a dictionary containing errors from the downloading process
        :raises: :class:`URLGrabError`
        cSs�|j�}|j�}|dkr^|dkr^tt|t�t|t��p]t||�S|dkrndS|dkr~dS||kr�dS||kr�dSdS(Ni����ii(t
getDiscNumRtcmpRR1(tapotbpoR-tb((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	mediasortp	scs�j|g�j|�dS(N(R3Re(R�R�(Ro(s0/usr/lib/python2.7/site-packages/yum/__init__.pytadderror�	stpredownloadtpkglisttdownloadonlyicsF|j�}|�kr6�jjtd�|�tS�j|��rotjj|�ro|j	j
|�ntjj|�r��j||t�r��jj
td�|�tS|j	jr��|td�|j	j�tSn�rB|jdtj�7_ytj||j�Wntk
r-nX|j�|jntS(Nsignoring a dupe of %ssusing local copy of %ss4package fails checksum but caching is enabled for %ss.%d.tmp(R�R{R�R
R9R�R�R�R�R[t_preload_pkg_from_system_cacheR<RbR�RXR�R0RtrenameR�R�tbasepath(R�tlocal(RHt	beenthereRKRI(s0/usr/lib/python2.7/site-packages/yum/__init__.pytverify_local�	s0



tpkgtypeROs3Delta RPMs reduced %s of updates to %s (%d%% saved)idgY@Rttext_meter_total_sizeit
parallel_waitcs��j||d��dc|j7<ttjd�rRtjj��d�nt|t�rr�j|�dS�j	�|j
�kr��j|j
��j|�\}}|dkr��j
jd|�q�n|�kr��|=ndS(NiiRSs%s(R<R3Rt
urlgrabbertprogressRSRR1trebuildtdequeue_maxRR�tsigCheckPkgR{R�(tobjR�tresultR((t
done_reposRot
local_sizetprestotremote_sizeRI(s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	checkfunc�	s 

cs�|t|j��S(N(R/t	exception(RZR�(RH(s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�
stfailfuncRs(%s/%s): %sR`ttextRXtnones.tmpR4is9Some delta RPMs failed to download or rebuild. Retrying..tpostdownloadRotreset_curl_objs)exiting because "Download Only" specified(AR�R�R;R�R�R�R�RbRRRReR0RR1RWR3RR{RR
RR0R4RWR"R�tlinkRtshutiltcopy2R]R�R�R�R9R^RURVRStgrabberR�RtrelativepathR[R
t
getPackagethttp_cachingR�R�R/RTtdequeue_alltwaittendswithR�R�trsplitRMRtclearR�RftsystexitR�(RIRJRQtcallback_totalRGtremote_pkgsRQRR�t	deltasizetrpmsizeR�tbeg_downloadtall_remote_pkgstall_remote_sizeR�RR`RcRR�trpmfiletfatal((	RHRPR\RKRoR]R^R_RIs0/usr/lib/python2.7/site-packages/yum/__init__.pytdownloadPkgsd	s�	
	





(



	
		

!
&





	





cCs�t|�tjkr!|j}nytj|�}|d}Wn<tjtfk
r||rutdt	d���q}dSnXt
|�}|j|jkr�|r�tdd��q�dSndS(s�Check that the header of the given file object and matches
        the given package.

        :param fo: the file object to check
        :param po: the package object to check
        :param raiseError: if *raiseError* is True, a
           :class:`URLGrabError` will be raised if the header matches
           the package object, or cannot be read from the file.  If
           *raiseError* is False, 0 will be returned in the above
           cases
        :return: 1 if the header matches the package object, and 0 if
           they do not match, and *raiseError* is False
        :raises: :class:`URLGrabError` if *raiseError* is True, and
           the header does not match the package object or cannot be
           read from the file
        ii����sHeader is not complete.s'Header does not match intended downloadi(RXR.R/R#RtreadHeaderListFromFileRt
IndexErrorRR
R'Rc(RIR6R�R7thlistthdrtyip((s0/usr/lib/python2.7/site-packages/yum/__init__.pytverifyHeaderU
sc
Cs�t|d�r"|jdkr"dSi}|j�}|jj|j�}tjj|�r�y|j	||dd�}Wn t
k
r�}tj|�q�X||_
dSn(|jjr�tjtd�|j
�n|jr�|jj|j�nyhtjj|j�stj|j�n|j	|dfif}|j|d|d|jd	k�}Wn[tjk
r�}|}	ytj|�Wntk
r�}tj|	�q�Xtj|	�nX||_
dSdS(
s�Download a header from a package object.

        :param po: the package object to download the header from
        :raises: :class:`yum.Errors.RepoError` if there are errors
           obtaining the header
        RRRONR7isKHeader not in local cache and caching-only mode enabled. Cannot download %sR`RXRd(RRRtlocalHdrR]tgetRepoRR�R�R�R�RR�R�thdrpathR�RXR�R�R
t
dsCallbacktdownloadHeaderRthdrdirtmakedirst	getHeaderRmR�(
RIR�RoROR[R[R�R`R�tsaved_repo_error((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�|
s@			c
Cs�|jrt}d}n\t|d�rK|jdkrK|jj}d}n)|jj|j�}|j	}|j
}|r�|jj�}t
jj||j�d|jj�}tjj|j��}|dkr�d}d}	q�|dkr|r�d}nd}td�|}	q�|dkr<d}td	�|}	q�|d
krv|rWd}nd}d}td�|}	q�|dkr�d}td
�|}	q�nd}d}	||	fS(s�Verify the GPG signature of the given package object.

        :param po: the package object to verify the signature of
        :return: (result, error_string) 
           where result is::

              0 = GPG signature verifies ok or verification is not required.
              1 = GPG verification failed but installation of the right GPG key
                    might help.
              2 = Fatal GPG verification error, give up.
        iRRROtpayloadRiis"Public key for %s is not installedsProblem opening package %sis Public key for %s is not trustedisPackage %s is not signed(R}RbRRRR�tlocalpkg_gpgcheckR]R�RtgpgchecktgpgkeyRFR�RCt	miscutilstcheckSigR�tpayload_gpgcheckR�R�RR
(
RIR�tcheckt	hasgpgkeyR[Rt	sigresulttlocalfnR[R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRY�
sJ								cCs�g}x|jD]}|jjtkr.qn|jjdkrFqn|jj|jjkrdqn|jjjryqn|jj|jj}t}x*|j	D]}|j
d�r�t}Pq�q�W|r�|j|jj
�g�q|jj|j|jj�|jj
�g�qWx�|D]�}tjj|�s<qnytj|�Wn/tk
r~}|jjtd�|�qqX|jjtjtd�|�qWdS(s`Delete the header and package files used in the
        transaction from the yum cache.
        R�sfile:sCannot remove %ss
%s removedN(R�R�RGR�RR]R[t	keepcacheRbtbaseurlR4R9RR�R�R�R�R�R�R�R�R�RzR�R
R{RR�R(RItfilelistR�R[ROtuR7R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��
s<
)
cCsdg}|j|dd�S(s+Delete the header files from the yum cache.R�R�Rc(t_cleanFiles(RItexts((s0/usr/lib/python2.7/site-packages/yum/__init__.pytcleanHeaderss	cCsdg}|j|dd�S(s,Delete the package files from the yum cache.RR5tpackage(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
cleanPackagess	cCs(dddddg}|j|dd�S(s+Delete the sqlite files from the yum cache.tsqlites
sqlite.bz2s	sqlite.gzs	sqlite.xzssqlite-journalRW(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytcleanSqlite"s	cCs.dddddddg}|j|dd	�S(
s-Delete the metadata files from the yum cache.sxml.gztxmltcachecookiesmirrorlist.txttascsxml.bz2sxml.xzRWtmetadata(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
cleanMetadata)scCsddg}|j|dd�S(soDelete the local data saying when the metadata and mirror
           lists were downloaded for each repository.R�smirrorlist.txtRWR�(R�(RIR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytcleanExpireCache1scCsP|jjd}tjj|�s+g}ntj|dg�}|jd|�S(s,Delete any cached data from the local rpmdb.s/rpmdb-indexes/RRF(R�R�R�R�R�R�tgetFileListt_cleanFilelist(RIRWR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
cleanRpmDB8s
	cCsw|jjj�}x|D]}d||<qWtj|jj|jj�}tj|jj|�}||jdd�S(s{Return a glob matching all dirs where yum stores cache files, based
        on cachedir and the given list of dynamic vars.R*s//R6(R�R�tcopyR�RR�t_pristine_cachedirtreplace(RItdynvarR�tdtinstrootRW((s0/usr/lib/python2.7/site-packages/yum/__init__.pytgetCachedirGlobBs
cCs�g}xs|D]k}xb|jj�D]Q}t||�}tjj|�r#tjj|�r#tj|||�}q#q#Wq
W|j	||�S(N(
R]R^R�R�R�R�R�R�R�R�(RIR�tpathattrtfiletypeR�textR[R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�Ls
$ cCs�d}x�|D]x}ytj|�Wn2tk
rX}|jjtd�||�q
q
X|jjtj	td�||�|d7}q
Wt
dd|�||f}d|gfS(NisCannot remove %s file %ss%s file %s removedis%d %s file removeds%d %s files removed(R�R�R�RzRvR
R{RR�RR(RIR�R�tremovedtitemR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�Us
RTc+Cs
|dkr|jj}ntjd|�}g}g}g}	g}
g}g}g}
g}g}|}|dkr�i}i}x�|jjd|d|�D]x}tj|g|�s�q�n|||j<|r�q�n|j	|j
f}||ks|j||�r�|||<q�q�W|j�}|rO|j
jd|d|d|�}nm|r�|j
j|}|jd|d|�}n<y|j
jd|d|�}Wntjk
r�g}nXx�|D]�}|r�|j|kr�|	j|�q�|j|�q�|j	|j
f}|j|kr/|	j|�q�|jj|j	d|j
�}|rjt|�d||<n||ks�|j||�r�|j|�q�|
j|�q�Wn|dkr�x�|jj�D]�\}}}}}|j
jd	|d|d
|d|d|�}tj||�}t|�d
krf|j|d�|jjtjtd�|d�q�t|�d
kr�|j|d�q�|jjtjtd�|||||�q�W|r�	t||d|�\}}} ||}q�	n�|dkr,|jjd|d|�}tj||�}n�|dkr�|rb|j
jd|d|d|�}nm|r�|j
j|}|jd|d|�}n<y|j
jd|d|�}Wntjk
r�g}nXx�|D]�}|r|jjd|�r|	j|�q�|j|�q�|jj|j	d|j
�}|rTt|dt�d}!n|sj|j|!�rz|j|�q�|j |!�r�|	j|�q�|
j|�q�Wn|dkrC|j
j!d|d|�}t"|�}x�|jjd|d|�D]@}tj|g|�sq�n|j|kr�|j|�q�q�Wny|dkr�xj|jjd|d|�D]L}tj|g|�s�qkn|j
j#|j	g�r�qkn|j|�qkWn�|dkr�d
|j_$x�|jj%�D]�\}"}#|"\}}}}}|j
jd	|d|d|d|d
|�}$tj|$|�}$|j&|#�}%t|$�d
kr�|jjtjtd�|$d�nt|$�d
kr�|j|$d�|
j|$d|%f�q�q�W|rTt||d|�\}}} ||}t"|�}&g}'x9|
D]1\}}%||&kr4qn|'j||%f�qW|'}
n|s�	t'|�}t"|�}(g}'x9|
D]1\}}%||(kr�qn|'j||%f�qW|'}
q�	n�|dkr�	t(j(�})|)|jj)d}*|r	|j
jd|d|d|�}nm|rG	|j
j|}|jd|d|�}n<y|j
jd|d|�}Wntjk
r�	g}nXx6|D]+}t*|j+�|*kr�	|j|�q�	q�	Wn||_,||_-|	|_.|
|_/||_0||_$|
|_1||_)||_2|S(sOReturn a :class:`yum.misc.GenericHolder` containing
        lists of package objects.  The contents of the lists are
        specified in various ways by the arguments.

        :param pkgnarrow: a string specifying which types of packages
           lists to produces, such as updates, installed, available,
           etc.
        :param patterns: a list of names or wildcards specifying
           packages to list
        :param showdups: whether to include duplicate packages in the
           lists
        :param ignore_case: whether to ignore case when searching by
           package names
        :param repoid: repoid that all pkgs will belong to
        :return: a :class:`yum.misc.GenericHolder` instance with the
           following lists defined::

             available = list of packageObjects
             installed = list of packageObjects
             updates = tuples of packageObjects (updating, installed)
             extras = list of packageObjects
             obsoletes = tuples of packageObjects (obsoleting, installed)
             recent = list of packageObjects
        titerRTR�tignore_caseRRFi����RDRRtverRHiis,More than one identical match in sack for %ss*Nothing matches %s.%s %s:%s-%s from updatet	casematchR�R>R�R�textrass
distro-extrasRJtrecenti�QN(3RR�tshowdupesfromreposR�R�RFR�tfilter_pkgs_repoidRcRRFtverGTR=RHtsackstreturnNewestByNameArchR�tPackageSackErrorReR+R�RtgetUpdatesListR"R{RR�tDEBUG_1R
R#R�R9R�RGR�R�RJtgetObsoletesTuplesR�RR�R�RtfiletimeR�R>treinstall_availablet
old_availableRDtobsoletesTuplesR�(+RIt	pkgnarrowR�tshowdupsR�RtyghR�R>R�R�RDRJR�R�R�tictdinsttndinstR�R|tavailR�tipkgsR,R-R�R.R/tmatchest
exactmatchR0t	unmatchedtlatestRctinstTupRtinstpotmatched_obsoletestnobsoletesTuplestfilttnowtrecentlimit((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoPackageListsdsn




%	 	


	

-	
	


									cCs�i}x�|D]�}i||<|j}|j�||}xo|D]g}|\}}}	|jd�rkqAng}
x*|j|||	�D]}|
j|�q�W|
||<qAWq
W|S(s;Return the dependencies for a given package object list, as well
        as possible solutions for those dependencies.
           
        :param pkgs: a list of package objects
        :return: the dependencies as a dictionary of dictionaries:
           packageobject = [reqs] = [list of satisfying pkgs]
        srpmlib((RUR^R4twhatProvidesRe(RIRtresultsR�treqst
pkgresultstreqR/tfR.t
satisfiersR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytfindDepsis

	


c%#sg}x'�D]}|jtj||��q
Wi}	g}
g}g�i�d}i�xX|D]P}
|j|
��j|
j��|
�|
j�<�j|
|�|d8}qaWx3|jjj�D]}|
j|j	||��q�W���fd�}||
|	�|rK|j
j	��dt�}
|j�||
|	�~
ni}|r|j
��}
x�|
D]�}d}g}g}xv|
|D]j\}}|t|�7}|j�|�|j|�||kr�g||<n||j||f�q�WqmW~
n|	j�rxxa|	j�D]P}xG|D]?\}}}||krVg||<n||j||f�q.Wq!Wni}	x�|D]�}g}g}x2||D]&\}}|j|�|j|�q�Wtj|�}tj|�}t|�}||	krg|	|<n|	|j|||f�q�Wtjd��d�}|rl�fd���fd�}ni}x�tt|	��D]�}d	}x0t|	|d��D]} |r�| \}!}"}#n�| dj| djf|kr�q�n| dj| djf}$|d	ks5|d|$krG||d| �rG|$| f}q�n|d\}!}"}#|d|$krsd	}n|$| f}|r�|!|"|#fVn|!|#fV|s�d||!j|!jf<q�q�W|d	k	r�|d\}!}"}#|r�|!|"|#fVq|!|#fVq�q�Wd	S(
s�Yield the packages that match the given search criteria.
        This generator method will lighten memory load for some
        searches, and is the preferred search function to use.

        :param fields: the fields to search
        :param criteria: a list of strings specifying the criteria to
           search for
        :param showdups: whether to yield duplicate packages from
           different repositories
        :param keys: setting *keys* to True will use the search keys
           that matched in the sorting, and return the search keys in
           the results
        :param searchtags: whether to search the package tags
        :param searchrpmdb: whether to search the rmpdb
           
        iic	s�x�|D]�\}}t�}g}||kr;g||<nxv�D]n}xe�D]]}tt||��}|rO|j�j|�dkrO|j|�|j�|�qOqOWqBWt|�dkr||j|||f�qqWdS(Ni����i(R�R-R�tlowerR�ReR�R"(	ttmprestsorted_listsR�Rttmpkeyst	tmpvalueststfieldR�(tfieldstrcl2ctreal_crit_lower(s0/usr/lib/python2.7/site-packages/yum/__init__.pytresults2sorted_lists�s	


!
tloweredcSstS(N(R9(R((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�
scsMt�fd�|dD��t|d�djt|d��|dfS(Nc3s|]}�|VqdS(N((RSty(tcritweights(s0/usr/lib/python2.7/site-packages/yum/__init__.pys	<genexpr>
siiti(tsumR"R�R�(R(R�(s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�
scs�|�d �|�d kS(Ni����((RR�(t	sort_func(s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�
sR|N(Ret
RPM_TO_SQLITER�R�R3RHR�R=Rt"searchPrimaryFieldsMultipleStringsRFR9R�tsearchPackageTagsR"R�tuniquetoperatort
itemgettertreversedR�RRRF(%RIR�tcriteriaR�R�t
searchtagstsearchrpmdbt
sql_fieldsR�R�R�t	real_critt
critweightR�R`R�tresults_by_pkgR�Rt	matchkeyst
tagresultsRttaglistR�tkR.ttotkeysttotvalstduptyieldedR`R�tsl_valsR�tkstvstna((R�R�R�R�R�s0/usr/lib/python2.7/site-packages/yum/__init__.pytsearchGenerator�s�



	





"


	 /	c	Cs�i}x�|D]�}|j�}|jj|�}xu|j�D]g\}}|jjd|�}|skq>n|d}||kr�g||<n||j||f�q>Wq
W|S(s Search for and return a list packages that have tags
        matching the given criteria.

        :param criteria: a list of strings specifying the criteria to
           search for
        :return: a list of package objects that have tags matching the
           given criteria
        Ri(R�R�tsearch_tagsR�RHR+Re(	RIRR�tcRkRR	RR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�<
s	


cCs�tjtd�tjdd�i}|j||�}xT|D]L\}}|r`|||�n||kryg||<n||j|�q>W|S(s�Deprecated.  Search the specified fields for packages that
        match the given criteria, and return a list of the results.

        :param fields: the fields to search
        :param criteria: a list of strings specifying the criteria to
           search for
        :param callback: a function to print out the results as they
           are found.  *callback* should have the form callback(po,
           matched values list)
        sosearchPackages() will go away in a future version of Yum.                      Use searchGenerator() instead. 
R�i(R�R�R
R�R�RR(RIR�RRQR�t	match_genR�tmatched_strings((s0/usr/lib/python2.7/site-packages/yum/__init__.pytsearchPackagesT
s	
cCsed�}i}xf|D]^}t|�}||�\}}|sXt}	|j|�}
nt}	|jj|�}
|jjtj	t
ddt|
��t|
��x�t|
�D]�}|jjtj
td�|�g}|	r�|j|�n|r|r|j|�n|r{|r{|jjtj
td��xD|j|j|jD](}
tj|
|�rL|j|
�qLqLWn|jjtj
td��x�|jD]v\}}\}}}tj|||||ff�}|	s�tj||�stj||�r|j|�qq�q�Wt|�dkr�|rc|rS|rS||||�qc|||�n|||<q�q�WqWdd	d
g}d
g}x�|D]�}||�\}}|s5|j|�}
t}	x�|
D]]}|g}t|�dkr�|r!|r||||�q!|||�n|||<q�q�Wq�t}	|j}
|rS|}n|}tjtj|��}x�t|
�D]�}g}g}xa|D]Y}t||�}|dkr�q�nt|�tj kr�|j!|�q�|j|�q�Wx-|D]%}|j"|�r�|j|�q�q�Wt|�dkr~|rL|||�n|||<q~q~Wq�W|S(snSearch for and return a list package objects that provide
        the given files or features.

        :param args: a list of strings specifying the files and
           features to search for the packages that provide
        :param callback: a callback function to print out the results
           as they are found
        :param callback_has_matchfor: whether the callback function
           will accept a list of strings to highlight in its output.
           If this is true, *args* will be passed to *callback* so
           that the files or features that were searched for can be
           highlighted
        cSsFtj|�s't}|jd�}nt}tj|�}||fS(NR6(R�R�RbR4R9tre_filename(R�tisglobt	canBeFile((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	_arg_data~
ssSearching %d packagesSearching %d packagesssearching package %sssearching in file entriesssearching in provides entriesiR�tdirnamestprovides_namesN(#R-R9treturnPackagesByDepRbRHtsearchProvidesR{RR�R�RR"R�RER
RetdirlistR�t	ghostlistR�RWR�tprco_tuple_to_stringtreturnInstalledPackagesByDepRFtreRyt	translateR�RRXR.tListTypeRR(RIRRQtcallback_has_matchforRR�R�RRt
usedDepStringtwhereR�R�tthisfiletp_nametp_flagtp_etp_vtp_rtprovR	ttaglist_provonlytarg_taglistt	arg_regext
searchlistttagttagdataR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytsearchPackageProvideso
s�	

"


"!$
	

			

cCs8i}|s|jjdkr#|Si}|j|jjkrW|jj|jj}ntt|��}t|d�r�|j	|j
�nx�|D]�}|jj|g�}||kr�|r�d||<q�n|s�d||<q�nxG|D]5}|j
jdd�|jkrq�nd||<Pq�Wd||<q�W|S(	s� Return a dict of
             pkg_name =>
             (installed, available,
             backlisted-installed, blacklisted-available). RctpackagesR>sblacklisted-availableR�RR�sblacklisted-installed(R�RjRnR�Rlt	pkg_namesR�R�RR
R9RFR�R�R�(RItgroupRR:t
all_pkg_namestpkg_nameR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_groupInstalledData�
s0




cCsi}|s|jjdkr#|Si}|j|jjkr]|jj|j}|j}ntt|��}t	|d�r�|j
|j�nx�|D]}}|jjj|�}||kr�|r�d||<q�n|s�d||<q�n|j
|jkrd||<q�d||<q�W|S(s� Return a dict of
             grp_name =>
             (installed, available,
             backlisted-installed, blacklisted-available). Rct	allgroupsR>sblacklisted-availableR�sblacklisted-installed(R�RjRsR�RlRqt	grp_namesR�R�RR
R?R�tenvironment(RItevgroupRR@t
all_grp_namestgrp_nametigrp((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_groupInstalledEnvDatas,



cCs$d}d}|dkr�|jj}|jjdkrK|jjj�}n|jj}|jjdkr~|jjj�}n||||fSg}g}xn|D]f}	|	jd�r�|j	|	d�q�|	jd�r�|j	|	d�q�|j	|	�|j	|	�q�Wdj
|�}dj
|�}|}
|jj|d|
�}|jjdkr�|ddj
g|D]}|j^qn�}|jj|d|
�}n|jj
|d|
�}|jjdkr|ddj
g|D]}|j^q��}|jj
|d|
�}n||||fS(NRcs@^it@it,tcase_sensitive(RRRlR�RjR�R=RqR4ReR�t
return_groupsRntreturn_environmentsRs(RIR�R�tigrpstievgrpstgrpstevgrpstgpatstepatstpattcsR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_groupReturnGroups9s>

--cCsLg}g}g}g}|jjdkr?tjtd��n|j||�\}	}
}}|	dk	r�i}
x|	D]}||
|j<qvW|
}	n|dk	r�i}
x|D]}||
|j<q�W|
}nx�|
D]�}|	dkr�|j	}n"|j
|	k}|r|	|j
=n|rN|r>|jrK|j|�qKq}|j|�q�|rp|jr}|j|�q}q�|j|�q�Wxk|D]c}|dkr�|j	}n"|j
|k}|r�||j
=n|r�|j|�q�|j|�q�W|	dkri}	n|dkri}n|	s&t�|s3t�xo|	j�D]a}tj�}|j|_
t|_	|j
|_x|jD]}d|j|<q}W|j|�q@Wx`|j�D]R}tj�}|j|_
t|_	|j
|_t|j�|_|j|�q�W|r6t|�t|�t|�t|�fSt|�t|�fS(s�Return two lists of groups: installed groups and available
        groups.

        :param uservisible: If True, only groups marked as uservisible
           will be returned. Otherwise, all groups will be returned
        :param patterns: a list of stings.  If given, only groups
           with names that match the patterns will be included in the
           lists.  If not given, all groups will be included
        :param ignore_case: whether to ignore case when determining
           whether group names match the strings in *patterns*
        :param return_evgrps: whether to return environment groups as well as
           package groups
        is3No group data available for configured repositoriesiN(RRkR�RwR
RTRR~R�R�Rntuser_visibleReRsRR=RmR9RR:tmandatory_packagesRrR�Rlt_groupsR�(RItuservisibleR�R�t
return_evgrpsR�R>t
einstalledt
eavailableRLRNRMROtdigrpsREtievgrpRt
grp_installedtevgrptevgrp_installedR=((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdoGroupListsas�	
	
	

		

		

		cCsg}|jj|�}|s=tjtd�t|��nx�|D]�}|j|�}t|_|j	}|j
}xv|D]n}||kr�||dkr�q{n|jd|dt�}	|j|	�x|	D]}
|
j
j|�q�Wq{W|rD|jj|�qDqDW|S(sMark all the packages in the given group to be removed.

        :param grpid: the name of the group containing the packages to
           mark for removal
        :return: a list of transaction members added to the
           transaction set by this function
        sNo Group named %s existsR�Rtsilence_warnings(RRJR�RwR
R-R>R9ttoremoveR9RnR'RRlReR�t	del_group(RItgrpidttxmbrs_usedtthesegroupst	thisgrouptigroup_dataRR~R�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytgroupRemove�s&
			


c	Cs+|jj|�}|s7tjtd�t|��nx�|D]�}t|_|j}x�|jD]�}x�|j	D]�}|j
j|krp|j
jt
krpy|jj|�Wn9tk
r�|jjtjtd�|j
|�qpnXt|j�dkr|j	j|j
j�qqpqpWq`Wq>WdS(s�Unmark any packages in the given group from being removed.

        :param grpid: the name of the group to unmark the packages of
        sNo Group named %s existss%package %s was not marked in group %siN(RRJR�RwR
R-RbRcR9R�R�RRGR�RlR'RR{RR�R�R"Rc(RIReRgRhRR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
groupUnremove�s$
		$
cCs�g}|jj|�}|s=tjtd�t|��nx�|D]�}|j|�}|j}|j}xm|D]e}||kr�||dkr�qrn|j	|�}	|j
|	�x|	D]}
|
jj|�q�WqrW|rD|j
j|�qDqDW|S(sMark all the packages in the given group to be removed.

        :param evgrpid: the name of the environment containing the groups to
           mark for removal
        :return: a list of transaction members added to the
           transaction set by this function
        sNo Environment named %s existsR�(RRKR�RwR
R-RFR?RsRjRRqReR�tdel_environment(RItevgrpidRfRgRhRiRNR�RR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytenvironmentRemove
s$
		


cCsg}|jj|�}|s=tjtd�t|��n|jj}|rX|}n|jjdkrst	}nx�|D]�}	|	j
r�qznt|	_
|}
g}d|kr�|j|	j
�nd|kr�|j|	j�nd|kr|j|	j�n|j|	�}d}
|rl|	j|jjkrM|jj|	j}
t}
ql|jj|	j|	j|�nx.|D]&}||dkrs|j|�qsqsWt|�}x�|D]�}|jjdkr-||ks�t�||ks�||jd�r-td	�}|jjtj|||	j�q�q-n|jjtjtd
�||	j�|
dk	r}|
jj |�t|j_!ng}y�|
r�|jjdks�|r�||dkr�|j"d|d
d�}ni|r�||dkr�nP|j#d|d
d�}x5|D]-}|	j|_$|
r+|	|_%q|	|_&qWWn/tj'k
rj}|jj(td�|�q�X|j|�x!|D]}|jj|	j�qWq�W|jj)}|dk	r�|}nd}|
r�|r�x�|	j*j+�D]�\}}|j,|�r�y|j#d|�}Wntj'k
r.q�n&X||j-j.krTg|j-j.|<n|j|�x;|D]3}|jj|	j�|j-j.|j|j/�qhWq�n|j0j1d|�}|r�|j2j3r9|jj4dkr9g}|j2j5}|jd�x-|D]%}|j2|kr|j|�qqW|}q9nt6|�}|t|�7}||j-j.krzg|j-j.|<n|j-j.|j|�q�q�Wn|
rzt|�|krz|j7j8td�|	j�|r�|j7j8td�|	j|�q�qzqzW|S(s�Mark all the packages in the given group to be installed.

        :param grpid: the name of the group containing the packages to
           mark for installation
        :param group_package_types: a list of the types of groups to
           work with.  This overrides self.conf.group_package_types
        :param enable_group_conditionals: overrides
           self.conf.enable_group_conditionals
        :return: a list of transaction members added to the
           transaction set by this function
        sNo Group named %s existstcompatt	mandatorytdefaulttoptionalR�Rctblacklisteds!Skipping package %s from group %ssAdding package %s from group %stsimpleRtpkg_warning_leveltdebug2s-No package named %s available to be installeditbesttnoarchs8Warning: Group %s does not have any packages to install.sDGroup %s does have %u conditional packages, which may get installed.N(9RRJR�RwR
R-R�tgroup_package_typesRjRbtselectedR9RRVtdefault_packagestoptional_packagesR>RRnR�RlRpR9ReR"RR4R{RR�RER:R�R�R
R9R�t_ugroup_membert_igroup_membertInstallErrorR�tenable_group_conditionalstconditional_packagesR5tisPackageInstalledR�tconditionalsR�RHR+RFRMtmultilib_policytlegit_multi_archesRRzRv(RIReRyR�tupgradeR]RfRgt
package_typesRhtlupgradeRRiRER�t
old_txmbrsR�R�R�R�tgroup_conditionalstcount_cond_testtcondreqtcondtuseRw((s0/usr/lib/python2.7/site-packages/yum/__init__.pytselectGroup.s�		
			

		


	




!c	Cs�|jj|�s1tjtd�t|��n|jj|�}|shtjtd�t|��nx/|D]'}t|_x|j	D]
}|j
jdt
�}x�|D]�}|jj|kr�q�n|s!y|jj|�Wq!tk
r|jjtjtd�|j|�q�q!Xn|s<t|j�dkr�|j
j|jj�x9|j
jj|jg�D]}|j
j|j�qnWq�q�Wq�WqoWdS(s)Unmark the packages in the given group from being
        installed.

        :param grpid: the name of the group containing the packages to
           unmark from installation
        :param force: if True, force remove all the packages in the
           given group from the transaction
        sNo Group named %s existss%package %s was not marked in group %siN(Rt	has_groupR�RwR
R-RJRbRzR9R�R�RR�R�RRlR'RR{RR�R�R"RcR�R�(	RIRetforceRgRhR�R�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
deselectGroup�s0

	


"cCs�|jj|�}|s7tjtd�t|��ng}x�|D]�}d	}|jjdkr}dj	t
|j��}	n�|jjdkr"|s�dj	t
|j��}	q|g}	xQ|jD]F}
|jj|
�}|d	kr�q�n|j
s�q�n|	j|
�q�Wdj	t
|	��}	nZ|jjdkr||j|�}t�}	xn|jD]c}
|
|ks{||
jd�r�td�}
|jjtj|
|
|j�qVn|	j|
�qVW|j|jjkrI|jj|j}x||jD]S}||jjkr
q�n|jj|j}||jkr5q�n|	j|�q�Wn|jj|j|j�}dj	t
|	��}	ny"|j|	|||d|�}Wntjk
r�qDnX|j|�qDW|S(
sMark all the groups in the given environment group to be installed.

        :param evgrpid: the name of the env. group containing the groups to
           mark for installation
        :param group_package_types: a list of the types of groups to
           work with.  This overrides self.conf.group_package_types
        :param enable_group_conditionals: overrides
           self.conf.enable_group_conditionals
        :return: a list of transaction members added to the
           transaction set by this function
        sNo Environment named %s existsRoRHRtRcRss%Skipping group %s from environment %sR]N( RRKR�RwR
R-RR�RjR�R�Rltreturn_groupR�ReRFR�R4R{RR�RERsR�R�RqR@RARtR?R�R(RIRmRyR�R�RORR_R]RNReRRiR�RDtgrp_evgrpidttxs((s0/usr/lib/python2.7/site-packages/yum/__init__.pytselectEnvironment�sh

				
cCst|jj|�}ts7tjtd�t|��nx6|D].}djt|j	��}|j
||�q>WdS(s@Unmark the groups in the given environment group from being
        installed.

        :param evgrpid: the name of the environment group containing the
           groups to unmark from installation
        :param force: if True, force remove all the packages in the
           given groups from the transaction
        sNo Environment named %s existsRHN(RRKRgR�RwR
R-R�R�RlR�(RIRmR�ROR_RN((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdeselectEnvironment=s	
cCs�x$|jD]}|j|kr
|Sq
W|jj|�}t|�dkr�|j|d|�|rhdStjt	d�t
|��nt|�dkr�|d}n
|d}|S(s�Return a package object that corresponds to the given
        package tuple.

        :param pkgtup: the package tuple specifying the package object
           to return

        :param allow_missing: If no package corresponding to the given
           package tuple can be found, None is returned if
           *allow_missing* is True, and a :class:`yum.Errors.DepError` is
           raised if *allow_missing* is False.
        :return: a package object corresponding to the given package tuple
        :raises: a :class:`yum.Errors.DepError` if no package
           corresponding to the given package tuple can be found, and
           *allow_missing* is False
        iRcs2Package tuple %s could not be found in packagesackiN(R�RcRHtsearchPkgTupleR"R"RR�tDepErrorR
R�(RIRct
allow_missingR�RR[((s0/usr/lib/python2.7/site-packages/yum/__init__.pytgetPackageObjectOs

cCsd|jj|�}t|�dkrV|j|d|�tjtd�t|��n|d}|S(s=Return a :class:`yum.packages.YumInstalledPackage` object that
        corresponds to the given package tuple.  This function should
        be used instead of :func:`searchPkgTuple` if you are assuming
        that the package object exists.

        :param pkgtup: the package tuple specifying the package object
           to return
        :return: a :class:`yum.packages.YumInstalledPackage` object corresponding
           to the given package tuple
        :raises: a :class:`yum.Errors.RpmDBError` if the specified package
           object cannot be found
        iRcs,Package tuple %s could not be found in rpmdb(RFR�R"R#R�t
RpmDBErrorR
R�(RIRcRR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�vs

cCs�|jjd}tjj|�r&dStjjd|jj�}|j	t
jt
jB�|j
dd�}|j�}~~|dkr�dStjj|�}tjj|�s�tj|�nt|d�}|j�~dSdS(	s�Checks for the presence of GPG keys in the rpmdb.

        :return: 0 if there are no GPG keys in the rpmdb, and 1 if
           there are keys
        s/.gpgkeyschecked.yumiR8Rs
gpg-pubkeyitwN(R�RWR�R�R�RCttransactiontinitReadOnlyTransactionR�tpushVSFlagsRt_RPMVSF_NOSIGNATURESt_RPMVSF_NODIGESTStdbMatchRRR�R�R�(RItgpgkeyscheckedtmytstidxR�tmydirR6((s0/usr/lib/python2.7/site-packages/yum/__init__.pytgpgKeyCheck�s$
cCs�|s
gSt|�tjkr1|\}}}n�|}d}d}|ddkr�|j�}t|�dkr�|\}}}|tkr�tjt	d�t
|��nt|}q�n|dkr�|jj|�S|jj
|||�j�S(sReturn a list of package objects that provide the given
        dependencies. 

        :param depstring: a string specifying the dependency to return
           the packages that fulfil
        :return: a list of packages that fulfil the given dependency
        iR6isInvalid version flag from: %sN(RXR.t	TupleTypeRR�R"tSYMBOLFLAGSR�tYumBaseErrorR
R�RHR tgetProvidesR�(RIt	depstringtdepnametdepflagstdepvert	dep_splitt
flagsymbol((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�s"cCs�|}t|�tjkr*t|�}ny|j|�}Wn*tjk
ritjtd�|�nXt|�}|j	|j
�d|�}|dkr�tjtd�|�n|S(s�Return the best, or first, package object that provides the
        given dependencies.

        :param depstring: a string specifying the dependency to return
           the package that fulfils
        :return: the best, or first, package that fulfils the given
           dependency
        :raises: a :class:`yum.Errors.YumBaseError` if no packages that
           fulfil the given dependency can be found
        sNo Package found for %sR�N(RXR.tStringTypesR�RR�R�R
Rt_bestPackageFromListR�R(RIR�R�RJtpsR[((s0/usr/lib/python2.7/site-packages/yum/__init__.pytreturnPackageByDep�s	cCs�|s
gSt|�tjkr1|\}}}n�|}d}d}|ddkr�|j�}t|�dkr�|\}}}|tkr�tjt	d�t
|��nt|}q�n|dkr�|jj|�S|jj
|||�j�S(s&Return a list of installed package objects that provide the
        given dependencies.

        :param depstring: a string specifying the dependency to return
           the packages that fulfil
        :return: a list of installed packages that fulfil the given
           dependency
        iR6isInvalid version flag from: %sN(RXR.R�RR�R"R�R�R�R
R�RFR R�R�(RIR�R�R�R�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR$�s"	cCs�|}t|�tjkr*t|�}ny|j|�}Wn*tjk
ritjtd�|�nXt|�}|j	|j
�d|�}|dkr�tjtd�|�n|S(s�Return the best, or first, installed package object that provides the
        given dependencies.

        :param depstring: a string specifying the dependency to return
           the package that fulfils
        :return: the best, or first, installed package that fulfils the given
           dependency
        :raises: a :class:`yum.Errors.YumBaseError` if no packages that
           fulfil the given dependency can be found
        sNo Package found for %sR�N(RXR.R�R�R$R�R�R
RR�R�R(RIR�R�RJR�R[((s0/usr/lib/python2.7/site-packages/yum/__init__.pytreturnInstalledPackageByDeps	cCsWt|�dkrdSt|�dkr0|dS|j|ddd|�}|ddS(s�take list of package objects and return the best package object.
           If the list is empty, return None. 
           
           Note: this is not aware of multilib so make sure you're only
           passing it packages of a single arch group.

           :param pkglist: the list of packages to return the best
             packages from
           :param req: the requirement from the user
           :return: a list of the best packages from *pkglist*
        iitreqpoR�N(R"Rt_compare_providers(RIRJR�tbestlist((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�.scCsg}|jj|�}g}g}g}	xq|D]i}
|
j|krLq1q1|
jdkrk|	j|
�q1td|
j�r�|j|
�q1|j|
�q1W|j|d|�}|j|d|�}|j|	d|�}
|r
|r
|r
|j|jkr
d}n|
dkrE|r,|j|�n|r|j|�qn�|r�|j||
gd|�}|jdkr�|j|
�q|r�|j|�n|r|j|�qn]|r|j||
gd|�}|jdkr�|j|
�q|j|�n
|j|
�|S(s,Return the best packages from a list of packages.  This
        function is multilib aware, so that it will not compare
        multilib to singlelib packages.

        :param pkglist: the list of packages to return the best
           packages from
        :param arch: packages will be selected that are compatible
           with the architecture specified by *arch*
        :param single_name: whether to return a single package name
        :param req: the requirement from the user
        :return: a list of the best packages from *pkglist*
        RxRFR�N(RFt
get_arch_listReRR�RR(RIRJRFtsingle_nameR�t
returnlisttcompatArchListtmultiLibt	singleLibRxR�tmultitsingletnoRw((s0/usr/lib/python2.7/site-packages/yum/__init__.pytbestPackagesFromListEsL
$	
c
sS�jd
k	r*�jj�jg�}n��jjs:d
St�d�s�tj�}t	j
jgg�}�jj
dt�|_�jjdtj�|�|�_n�jj�jg�}�j|krO|�j}g}x4|D],}t�j|d�s�|j|�q�q�W|r,|}nt|�dkrx|d}g|D] }	|d|	dkrO|	^qO}nt|�dkr�d�}
|j|
�|d}g|D]}	|
||	�s�|	^q�}nt|�dkrd�����fd�}|j|�nx3|D]+}	�j|	d	t�}|d
k	r|SqWd
Sd
S(s� Given a package return the package it's obsoleted by and so
            we should install instead. Or None if there isn't one. RARBsObs Init time: %0.3fiicSsI|\}}}}}|\}}}	}
}t|||f|	|
|f�S(N(R(RR�tn1ta1te1tv1tr1tn2ta2te2tv2tr2((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt	_sort_ver�scSs:t||�}|sdSt||�}|s2dS||S(Ni(R(tcarchR�R�tres1tres2((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_sort_arch_i�sc
se|\}}}}}|\}}}	}
}��j||�}|rI|S��jj||�}|S(N(RFtbestarch(
RR�R�R�R�R�R�R�R�R�R�R�R(R�R�RI(s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_sort_arch�sR�N(RkRRtcheckForObsoleteRcR�RJRR�RCRDRERHRKR9RIR{R�RARRFReR"R^R�(
RIR�tthispkgobsdictRXRR=toobsoletingtopkgtupR�RcR�R�R�((R�R�RIs0/usr/lib/python2.7/site-packages/yum/__init__.pyt_pkg2obspkg�sP	

	

#	


	
cCs�|}t}x{tr�||�}|dkr8|r8dS|dkrH|S||�}|dkrd|St}||�}||krdSqWdS(s� Generic comp. sci. test for looping, walk the list with two pointers
            moving one twice as fast as the other. If they are ever == you have
            a loop. If loop we return None, if no loop the last element. N(RbR9R(RItnodet	next_functslowRtnext((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_test_loop�s	cCs8t|d�r4d|jjd||jjdfS|S(s1Attempt to make the string look bold in terminal.R�s%s%s%sR�R�(RR�R�(RItstring_((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s%cCs?|ddkst�|d}g}y
|j}Wn*tjjk
r_}|jj|�|SXt}|r�|ddkr�|d}x�|j|�D]1}t	}|j
|jd|�}	|j|	�q�WnExB|j
|�D]1}
t	}|j|
jd|�}	|j|	�q�W|s;tjtd�|j|��n|S(s= Do groupinstall via. leading @ on the cmd line, for install.iRGit^R�sGroup %s does not exist.(RRR�R�RwRzR�RbRKR9R�RsRRJR�RntGroupInstallErrorR
R�(RItpatternR�tgroup_stringt	tx_returnRR�Rjtenv_grpR�R;((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_at_groupinstall�s.


	"cCs`y|j|dt�SWnBtjk
r[}|jjtd�|�|jjrUgS�nXdS(s= Do group upgrade via. leading @ on the cmd line, for update.R�sWarning: %sN(	R�R9R�R�RzR�R
R�tskip_missing_names_on_update(RIR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_at_groupupgradescCs�|ddkst�|d}g}|r�|ddkr�|d}y|j|�}Wn0tjjk
r�|jjtd�|�nX|j|�|Sy|j	|�}Wn0tjjk
r�|jjtd�|�nX|j|�|S(s; Do groupremove via. leading @ on the cmd line, for remove.iRGiR�s-Warning: Environment Group %s does not exist.sNo group named %s exists(
RRnR�R�RwRzRvR
RRj(RIR�R�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_at_groupremoves"



cCs�|ddkst�|d}|jj|�}|sWtjtd�t|��nt�}x|D]}|j|j	�qgW|j
j|�S(s8 Do downgrade of a group via. leading @ on the cmd line.iRGisNo Group named %s exists(RRRJR�RwR
R-R�R
R9RHR�(RIR�ReRgtpkgnamesRh((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_at_groupdowngrade1s
	
cCs�|ddkst�|dj�}|rR|jd�rR|d}|j|�S|r|ddkr|d}|j|�S|jj|�S(s5 Remove things from the transaction, like kickstart. it-is@^iRG(RtstripR4R�R�R�tdeselect(RIR�RR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_minus_deselect@s



ccs�|jjsdSt|t�sqxn|jjd|j�D]2\}}|j|kr8|j|�}|Vq8q8Wnx|j	|�D]}|Vq�WdS(s; Return the pkgs. that are obsoleted by the po we pass in. NR(
R�RJRR&RtgetObsoletersTuplesRRcR�t_find_obsoletees_direct(RIR�tobstuptinst_tupt
installed_pkgR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_find_obsoleteesOs%ccsRxK|jD]@}x7|jjd|�D] }|j|g�r&|Vq&q&Wq
WdS(s< Return the pkgs. that are obsoleted by the po we pass in. This works
            directly on the package data, for two reasons:
            1. Consulting .up. has a slow setup for small/fast ops.
            2. We need this work even if obsoletes are turned off, because rpm
               will be doing it for us. RN(tobsoletes_namesRFR+tobsoletedBy(RIR�tobs_nR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�]scGs=x6|D].}||jjkr|jjj|�qqWdS(sB Add all of the passed flags to the tsInfo.probFilterFlags array. N(R�R�Re(RItflagstflag((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_add_prob_flagshs
cCs`xY|jjd|j�D]?}|j|�rt|j|j�r|jtj�t	SqWt
S(s9Add RPMPROB_FILTER_OLDPACKAGE if the package requires it.R(RFR+RR�RRFR�RR�R9Rb(RIR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�ns
%cCs�tr(|jdk	r(|j|jjkS|j|�r;tSx�|D]y}|j|�r]qBn|j|jkrst	Sd|j|jfkr�t	S|jj
s�t	St|j|j�r�qBnt	SWtS(sh See if po is an upgradeable version of an installed pkg.
        Non-compat. arch differences mean no. RxN(RbRkRRcRt
updating_dictR�tverLERFR9RMR(RIR�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_install_is_upgradevs"
cCs�|s!|jj|jg�}n|}xB|jj|j�D]+}|jtkrYq>n|j|j�q>Wxy|D]q}|j	|j	kr�qtn|j
|�s�qtnt|j	|j	�r�qtn|jj
tjtd�||�tSWtS(sj See if we can install this arch of package, mainly for
            i386 vs. i586 or ppc64 vs. ppc64 etc. s&Package: %s - can't co-install with %s(RFR�RR�R�R�R�ReR�RFR�RR{RR�R�R
RbR9(RIR�R�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_valid_install_arch�s$
cCsX|jjs|jjdkr#tS|jdksA|jdkrEtS|j|jjkS(syReturn whether this obsoleter meets multilib_policy in case we are
        dealing with the noarch->arch obsoletion case.RwRx(RFRMR�R�R9R�(RIR`t	obsoletee((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_valid_obsoleter_arch�s
cso	|jdd�}�fd�}i|d6�jjd6}||krPd}n||}g}t}|r�t|t�s�t|t�r�|j|�q tj	t
d��nq|s�tj	t
d��nd|kr'|dr|dd	d
kr�j|d�S|dr4|dd	dkr4�j|d�Sd)}d|krS|d}nt}|dg}	�jjd
|	d|dt�}
|j|
�|
s�|d}�jjt
d�|��j|�}
|r�tj|
|�}
ntj|�s�j|
dtd|�}
n|j|
�q�n{�j|�}�jjd|dd|dd|dd|dd|d�}�j||�tj||jd��}|r �jjr�|s�|dr��jjdkr�i}
g}g}�jj}|jd�xG|D]?}|j|kr;d|
|j <|j|�q	|j|�q	Wx-|D]%}|j |
krS|j|�qSqSW|}q�q�nt!|�}i}xD|D]<}|j |kr�|g||j <q�||j j|�q�Wg}x*|j"�D]}|j�j|��q�W|}n|s4d|kr�|d}�j#jd
|gdt�}|s��jjt
d�|��j$|�}q�nd|kr��j#jd|d�}nd|kr��j#jd|dd	�}ntrx*|D]}�jjt
d�|�q�Wn|rgStj	t
d��ng}x.|D]&}�j%j&d|j'�r��j%j(|j't)�r��jj*t+j,t
d �|�|j�j%j-d|j'��qAq�n�j#j.|j g�}|r"�j/||�r"�j0d!|d|jd��}|j|�qAn�j1||�s:qAnd)}�jj2rtt|t�rt�j3|�j4�}n|d)k	rgd)}�j#jd|j �}|j5|d"d�}|r�|d	}n|r�|t
d#�||�qAd$|kr)|j6|d$�s)|t
d%�|j |j �qAq)n|t
d&�|j |j |�|j�j7d!|��qAn�j#j8d!|�r��j%j(|j't9�s�|t
d'�|�qAq�n�j:|�sit}xQ�j#jd|j d|j�D].}t}�j%j(|j't9�r�t}Pq�q�W|si|t
d(�|��j0d!|d|jd��}|j|�qAqinxk�j#jd|j d|j�D]H}|j;|�r��j<t=j>t=j?t=j@��j%jA|j'�Pq�q�W�jB|�tC�jD|��}|rH	xe|D];}�j%jE||�}�j%jF||�|j|�q	WqA�j%jG|�}|j|�qAW|S(*sfMark the specified item for installation.  If a package
        object is given, mark it for installation.  Otherwise, mark
        the best package specified by the key word arguments for
        installation.

        :param po: a package object to install
        :param kwargs: if *po* is not specified, these keyword
           arguments will be used to find the best package to install
        :return: a list of the transaction members added to the
           transaction set by this function
        :raises: :class:`yum.Errors.InstallError` if there is a problem
           installing the package
        Rutflibblecs�jjtj||�dS(N(R{RR�RE(RR(RI(s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_dbg2�sRvR�s0Package Object was not a package object instancesNothing specified to installR�iR�RGRR�R�s3Checking for virtual provide or file-provide for %sR�R�RRRFR�RRHRRwRxis=Checking for installed virtual provide or file-provide for %sRcs&Package %s installed and not availables"No package(s) available to installs)Package: %s  - already in transaction setR�tlimits8Package %s is obsoleted by %s which is already installedtprovides_forsWPackage %s is obsoleted by %s, but obsoleting package does not provide for requirementss;Package %s is obsoleted by %s, trying to install %s insteads/Package %s already installed and latest versions;Package matching %s already installed. Checking for update.N(HR�R{R�RbRR%R&ReR�RR
R�R�RR9RHR�RR�RR�R�R�R�t_nevra_kwarg_parseR+R"RFRMR�R�R�RRR=RFR$R�R�RcR�R�RR�R�R�R�R�R
RRJR�R�R�RR9R�R�R�R�R�RtRPMPROB_FILTER_REPLACEPKGtRPMPROB_FILTER_REPLACENEWFILEStRPMPROB_FILTER_REPLACEOLDFILESR'R�R�R�t
addObsoletingR%t
addInstall(RIR�Rtpkg_warnRt
level2funcRtwas_patternRtpatstmypkgsR�R tpkgs_by_nameR�t	not_addedRwR�t	pkgbynametlstR�R�R�tobsoleting_pkgtalready_obsRjR�tobs_pkgsRR�((RIs0/usr/lib/python2.7/site-packages/yum/__init__.pyR9�sH
	


	






	
			 
 
	!


		(!
	(


cCs�t|jd��}t|jd��}g}x�|j|�D]�}|jj|�}x�|D]y}xp||D]d}	|jd|	�sp|j|jf}
x3|jj	|
�D]}|j
|jd|��q�WPqpqpWq_Wq@W|S(s� Check for any difference in the provides of the old and new update
            that is needed by the transaction. If so we "update" those pkgs
            too, to the latest version. RWR�(R�t
returnPrcot
differenceR�tgetRequirestinPrcoRangeRRFRHR�RR
(RItopkgtnpkgtoprovstnprovsR�R1R�R�R�tnaTup((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_check_new_update_provides�s
c
Cs�t}x�|jj|tg�D]�}d}x�|jD]z}|j|�rW|d7}q5xU|jj|j�D]>}|jj|j	j�|j
|j	|�}	|j|	�qmWq5W|r�t}q|jj|j	j�qW|S(s We return True if there is a newer package already in the
            transaction. If there is an older one, we remove it (and update any
            deps. that aren't satisfied by the newer pkg) and return False so
            we'll update to this newer pkg. ii(
RbR�R�R)R*R�R�RcR'R�R"RR9(
RIRct
available_pkgR�RjR�RR�tntxmbrR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_newer_update_in_trans�s
		cCs\|jj||�}|r+|j|�nd|jkrX|jjdkrXd|_n|S(NR�R4(R�t	addUpdatetsetAsDepR�R�(RItrequiringPotupkgR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_add_up_txmbr�s!c,s�
|jdd�}�fd�}i|d6�jjd6}||krPd}n||}g}|r�|r��jjtjtd���jj�}	�j	j
r��jjdd�}
ng}
x�|
D]�\}}�j|d	t
�}
|
d'kr�q�n�j|�}�j|
|�s$q�n�j|
�j�}|d'k	rN|}
n�jj|
|�}�jj||
�|r�|j|�n|j|�q�Wx�|	D]�\}}�jjd
|�r��jjtjtd�|�q��j|d	t
�}|d'krq�n|j�jd|��q�W�j	jd
kr��j	jr�x.�jjD] }|j�jd|��qWWx1�jj D] }|j�jd|��q�Wn|Sg}g}t
}|r�|j!dkr�|j|�q�|j|�n�d|kr�|dr5|dddkr5�j"|d�S|drd|dddkrd�j|d�S|d}|s��j#j$d|g�}t%j&||jd��}n'�j'j$d|gd|jd��}|r�|r�g}y+|r�j(|�}n�j)|�}Wn3t*j+j,k
rE}�j-j.td�|�nXt%j&||jd��}|rw|j|�q�|j|�nyz|r�g}ng|jd�r�|dg}�j'j/|d}|j0d|�}n"|dg}�j'j0d|�}Wnt+j1k
rg}nX|j|�|r}|r}�j-j.td�t2|���j	j3s}t+j4td��q}nd|dk}n�j5|�}�j#j6d|dd|dd|dd|dd|d �}|s��j'j6d|dd|dd|dd|dd|d �}�j7||�t8|�dkrp�j9||�}t:d!�|�}q�|s�|td"��j;|��q�n�j	j
rQx�|D]�}�jj<j|j=g�}g}xb|D]Z} �j| d	t
�}
|
d'krq�n|r&�j|
|�r&q�n|j|
�q�Wx-t>|�D]}
|j�j?d|
��qDWq�Wx�|D]�}!x��j@|!�D]�}"|r��j|!|"�r�q�n|"j=}#�jj|!|"�}|r�|j|�n|j|��jj|#�r$�jjtjtd#�|#�q��jj|"|!�}|j|�q�WqrWnx�|D]z}xq�jjAj|j=g�D]T}$�j|$d	t
�}|d'kr�qzn�jj|j=�r��jjtjtd�|j=�qz|j=�jjBd|jC�kr~	x��j@|�D]d}%�jjD||�}|rD	|j|�n�jj||%��jj|%|�|j|�q	Wqz�jjE|j=tF�r�	�jjG|j=�n�jH|||�}|j|�qzWqXWx0|D](}!�jI|!�s�	q�	ntJ|!tK�r�
|!jC}&xm�j#jL|&�D]Y}'|'j=}(�jjE|(tF�rZ
�jjG|(�n�jH||!|'�}|j|�q#
Wq�	n�j|!�j�}
|
d'k	r|jd�r�
|
j!|jd�kr�
q�	n�jjtjtd$�|!�|j�jd|
��q�	nx��jjMj|!j=g�D]�}(�jj|(�ri�jjtjtd�|(�q.�jN|(|!|�r��jjtjtd%�|(�q.�j|(�}'�jjE|(tF�r��jjG|(�n�jH||!|'�}|j|�q.W�j#j6d|!jCd|!jO�})|)rG�jP|!�rGtQ|)�d&})nx�|)D]�}*�jj|*j=�r��jjtjtd�|*j=�qN�jN|*j=|!|�r��jjtjtd%�|*j=�qN|*jR|!�rN�jH||!|*�}|j|�qNqNWq�	Wxq|D]i}x`�j#j6d|jC�D]F}+|+|jSkr/
�jT|jU|+�ru
�jjV|+|jU�qu
q/
q/
Wq
W|S((sOMark the specified items to be updated.  If a package
        object is given, mark it.  Else, if a package is specified by
        the keyword arguments, mark it.  Finally, if nothing is given,
        mark all installed packages to be updated.


        :param po: the package object to be marked for updating
        :param requiringPo: the package object that requires the
           upgrade
        :param update_to: if *update_to* is True, the update will only
           be run if it will update the given package to the given
           version.  For example, if the package foo-1-2 is installed,::

             updatePkgs(["foo-1-2"], update_to=False)
           will work identically to::
            
             updatePkgs(["foo"])
           but::

             updatePkgs(["foo-1-2"], update_to=True)
           
           will do nothing
        :param kwargs: if *po* is not given, the names or wildcards in
           *kwargs* will be used to find the packages to update
        :return: a list of transaction members added to the
           transaction set by this function
        RuRcs�jjtj||�dS(N(R{RR�RE(RR(RI(s0/usr/lib/python2.7/site-packages/yum/__init__.pyRsRvR�sUpdating EverythingRBiR�Rcs>Not Updating Package that is already obsoleted: %s.%s %s:%s-%sR�Rcs@^RGR�R�iR�R�Rs%ssNo Match for argument: %ss1Not tolerating missing names on update, stopping.R4RRRFR�RRHRcSs|dS(Ni((R((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��ss!No package matched to upgrade: %ss,Package is already obsoleted: %s.%s %s:%s-%ss*Not Updating Package that is obsoleted: %ss<Not Updating Package that is already updated: %s.%s %s:%s-%si����N(WR�R{R�RR�RER
RtgetUpdatesTuplesR�RJR�R�R9RR�RR�R�R�RR%R'RetisObsoletedRR
Rjtupgrade_group_objects_upgradeR�RqR�RlRR�RFR�R�R�RHRR$R�R�R�RzRvR�R�R�R-R�tUpdateMissingNameErrorRR+R"R"R�tmapt_ui_nevra_dicttobsoleted_dictRcRR9R�tupdatesdicttgetObsoletesListRR&R�R�R'R*RRR&treturnNewestByNameR�R%RFR�R�tverLTRDt_does_this_updateR�t
addUpdated(,RIR�R(t	update_toRR
RRR�RDRJR=R�RR�ttopkgR�tnewtoldR]REtinstpkgst	availpkgstarch_specifiedR�t
depmatchesR�R�RR tobs_tupsRRcR#t
obsoleted_pkgR<tupdatingRR,tupdated_pkgR?tpot_updatedR�ti_pkg((RIs0/usr/lib/python2.7/site-packages/yum/__init__.pyR
�s�!
	
		!
			



 "

	!
	
#
"!	
				"			!

	
$c
Ks�|r|rtjd�ng}g}|r;|g}nYd|kr�|drv|dddkrv|j|d�S|dr�|dddkr�|j|d�S|jj|dg�\}}}d|krtj||d�}tj||d�}n|j|�|j|�|r�g}|d}	y|j	|	�}Wn3t
jjk
rz}|jj
td�|�nXd|kr�tj||d�}n|s�t|	�}	|jj
td�t|	��q�|j|�q�n�|j|�}
|jjd	|
d	d
|
d
d|
dd|
d
d|
d�}|j||
�t|�dkr�|jdt�s�|jjtd�|j|
��q�n|jj�}tj|�}x�|D]�}|jjr�|j|kr�|jjtd�|�q�n|jj|j�r_xM|jj|j �D]3}
|jj!td�|
�|jj"|
j�q%Wn|jj#|�}
|j$|
�q�W|S(sZMark the specified packages for removal. If a package
        object is given, mark it for removal.  Otherwise, mark the
        package specified by the keyword arguments.

        :param po: the package object to mark for installation
        :param kwargs: If *po* is not given, the keyword arguments
           will be used to specify a package to mark for installation
        :return: a list of the transaction members that were added to
           the transaction set by this method
        :raises: :class:`yum.Errors.RemoveError` if nothing is specified
           to mark for removal
        sNothing specified to removeR�iR�RGRs%ssNo Match for argument: %sRRRFR�RRHRRbs No package matched to remove: %ssSkipping the running kernel: %ss Removing %s from the transaction(%R�tRemoveErrorR�R�RFtmatchPackageNamesR�R�RR$R�R�RzRvR
R-RR+R#R"R�RbR�R0R�R�R�R�RcR�R�R�RRR'taddEraseRe(RIR�RR�RR�R�R�R?R�R RR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR'Fsj
"


	#(
cCsg}g}g}g}|s�y1t|d|jj�d|dtjj�}Wn.tjk
r|jj	t
d�|�|SX|jjt
jt
d�|j|�n|jddkr�|jj	t
d�|�|S|j|jjkr|jj	t
d	�||j�|S|jjrg|j|jj|j��}|rg|jj	t
d
�||d�|Sn|jjd|j�}	t|	�dkr�|r�|jjt
d
�|j�|S|j|�nxj|	D]b}
|j|
�rO|
j|jjkr|j|
jkr|j|�q0|j|�r9|j|�q0|j||
f�q�|j|
�r�|j|
jkr�t |j�s�t |
j�r�|r�|jjt
d�|j|j�q�|j|�q0|j|�q�|j|�r#|r|jjt
d�|j|j�q0|j|�q�|j|�q�W|g|D]}|d^q>}|j!||�r�|jj"t
d�|�|SxY|D]Q}|jjt
jt
d�|j�|j#j|�|j$|j%d|��q�Wxh|D]`\}}
|jjt
jt
d�|j|
�|j#j|�|j&d|�}|j$|�q�Wx0|D](}|jjt
jt
d�|j�qRWx�|D]x}|j'jr�|jr�xY|j(|j'�D]B}|j)j*||j'�|jj|�|j)j+|j'|�q�Wq�q�W|S(s|Mark a package on the local filesystem (i.e. not from a
        repository) for installation. 
        
        :param pkg: a string specifying the path to an rpm file in the
           local filesystem to be marked for installation
        :param po: a :class:`yum.packages.YumLocalPackage` 
        :param updateonly: if True, the given package will only be
           marked for installation if it is an upgrade for a package
           that is already installed.  If False, this restriction is
           not enforced
        :return: a list of the transaction members added to the
           transaction set by this method
        RturltuasCannot open: %s. Skipping.sExamining %s: %st
payloadformattdrpms+Cannot localinstall deltarpm: %s. Skipping.sGCannot add package %s to transaction. Not a compatible architecture: %ssBCannot install package %s. It is obsoleted by installed package %siRsRPackage %s not installed, cannot update it. Run yum install to install it instead.sUPackage %s.%s not installed, cannot update it. Run yum install to install it instead.sExcluding %ssMarking %s to be installedR�sMarking %s as an update to %ss&%s: does not update installed package.(,R(RFR�R3R�t
user_agentR�R>RzRvR
R{RR�R�R0R�RFR,R�RJR�tsearchObsoletesRR+R"R�ReR�RSR�R�Rt_is_local_excludeR�R�RR9R
R�R�R�R%R(RIR�R�t
updateonlyR�tinstallpkgst
updatepkgst
donothingpkgst
obsoleterstinstalledByKeyR�Rt
check_pkgstoldpoR�R�tobs_pkg((s0/usr/lib/python2.7/site-packages/yum/__init__.pytinstallLocal�s� 
%%!


!cCs
|s�y1t|d|jj�d|dtjj�}Wn.tjk
rg|jj	t
d�|�gSX|jjt
jt
d�|j|�n|j|jjkr�|jj	t
d�||j�gS|j||g�r�|jjt
d�|�gS|jd|�S(	s�Mark a package on the local filesystem (i.e. not from a
        repository) for reinstallation. 
        
        :param pkg: a string specifying the path to an rpm file in the
           local filesystem to be marked for reinstallation
        :param po: a :class:`yum.packages.YumLocalPackage` 
        :return: a list of the transaction members added to the
           transaction set by this method
        RRIRJsCannot open file: %s. Skipping.sExamining %s: %ssGCannot add package %s to transaction. Not a compatible architecture: %ssExcluding %sR�(R(RFR�R3R�RMR�R>RzRvR
R{RR�R�R0RFR,ROR�R�(RIR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytreinstallLocals 
cKs�|jtjtjtj�g}|rG|j|jd|j��n|j|j|��|sxtj	t
d��nt|�}g}g}g}x�|D]�}|jj
}	t|j_
t|t�r�d|kr�|jd|�}
n$|jd|jd|jd��}
|	|j_
t|
�dkrz|jj|j�|j|�|jt|j��|j|j�q�n|j|
�q�W|r�|r�tjt
d�dj|�d	|��n|j|�|S(
s�Mark the given package for reinstallation.  This is
        accomplished by setting problem filters to allow a reinstall
        take place, then calling :func:`install`.

        :param po: the package object to mark for reinstallation
        :param kwargs: if po is not given, the keyword will be used to
           specify a package for reinstallation
        :return: a list of the transaction members added to the
           transaction set by this method
        :raises: :class:`yum.Errors.ReinstallRemoveError` or
           :class:`yum.Errors.ReinstallInstallError` depending the nature
           of the error that is encountered
        Rcs2Problem in reinstall: no package matched to removeRR�trepoid_installis6Problem in reinstall: no package %s matched to installs, tfailed_pkgs(R�RRR	R
RR'RcR�tReinstallRemoveErrorR
R"R�RJRbRR&R9R�R�ReR�R�tReinstallInstallErrorR�(RIR�Rttx_mbrsttemplentnew_membersR8R\R�told_conf_obstmembers((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�<s@


+
cCs
|s�y1t|d|jj�d|dtjj�}Wn.tjk
rg|jj	t
d�|�gSX|jjt
jt
d�|j|�n|j|jjkr�|jj	t
d�||j�gS|j||g�r�|jjt
d�|�gS|jd|�S(	s�Mark a package on the local filesystem (i.e. not from a
        repository) to be downgraded.
        
        :param pkg: a string specifying the path to an rpm file in the
           local filesystem to be marked to be downgraded
        :param po: a :class:`yum.packages.YumLocalPackage` 
        :return: a list of the transaction members added to the
           transaction set by this method
        RRIRJsCannot open file: %s. Skipping.sExamining %s: %ssGCannot add package %s to transaction. Not a compatible architecture: %ssExcluding %sR�(R(RFR�R3R�RMR�R>RzRvR
R{RR�R�R0RFR,ROR�t	downgrade(RIR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytdowngradeLocalys 
cCs�d|jjks$d|jjkr(tSg}t|jj�dkrwt||jjdd�\}}}||}n||kr�tStS(s0returns True if the local pkg should be excludedRTR�iR�i(R�RRbR"R0R#R9(RIR�RJttoexcR�R0R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRO�s$
c
Ks�|r|rtjd�nt}|r5|g}nud|krJ|drp|dddkrp|j|d�S|dr�|dddkr�|j|d�}t}q�|jjd|dgdt�}|s�|d}|jj	t
d�|�y|j|�}WqGtjj
k
rC}|jjt
d	�t|��qGXq�n`|j|�}|jjd
|d
d|dd|dd
|dd|d�}|j||�|s.g}d|kr�|jjd|dgdt�}nd
|kr|jjd
|d
�}n|rgStjt
d��nt�}	g}
x�|D]�}|j|�r�|j|jf|	kr�t
d�|}|jjtj|�n|	j|j|jf�qDn|
j|�qDW|
}t�}
x|D]}|
j|j�q�W|jjt|
��}i}i}x�t |�D]�}|j|ksZ|j!||jd�rm|g||j<n1|j"||jd�r�||jj|�n|||j|jf<q+Wi}x�t |�D]�}|j|jf}d}||kr||}n[|j|kr]xI||jD]7}t$|j|j�s|}|j|jf}PqqWn|dkr�||	kr�|r�|j|kr�t
d�|}|jj|�n|	j|�q�n|j"|�r�q�n|j%|�r'||	krt
d�|}|jj|�n|	j|�q�n|	j|�|j&|kr_|j'||j&�r_q�n|||j&<q�Wg}xh|D]`}|j&|kr�q}n|j(j)||j&|�}|s�q}n|j*t+j,�|j-|�q}W|S(srMark a package to be downgraded.  This is equivalent to
        first removing the currently installed package, and then
        installing the older version.

        :param po: the package object to be marked to be downgraded
        :param kwargs: if a package object is not given, the keyword
           arguments will be used to specify a package to be marked to
           be downgraded
        :return: a list of the transaction members added to the
           transaction set by this method
        :raises: :class:`yum.Errors.DowngradeError` if no packages are
           specified or available for downgrade
        sNothing specified to downgradeR�iR�RGR�R�s3Checking for virtual provide or file-provide for %ssNo Match for argument: %sRRRFR�RRHRs$No package(s) available to downgrades1Package %s is allowed multiple installs, skippings"No Match for available package: %ss%Only Upgrade available on package: %sN(.R�tDowngradeErrorRbR�R�R9RHR�R{R�R
RR�R�RzRvR-RR+R"RFR�R�RRFRR�R�R�ReR�R�R�R�R�RRtverGERcR�R�taddDowngradeR�RR�R(RIR�Rtdoing_group_pkgstapkgsR�R�R Rt
warned_nasttapkgsR�R�t
apkg_namesR�tlatest_installed_natlatest_installed_ntdowngrade_apkgsRtlipkgttlipkgR�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRd�s�		
*



	
	





cCs�|d}|d}|d}|d}|d}|rZ|rZ|rZd|||f}nS|ry|ryd||f}n4|r�|r�d||f}n|r�|}nd	}|r�|r�d||fS|r�d
|S|r�|SdS(NRRRRRFs%s:%s-%ss%s-%ss%s:%sRs*-%ss	<unknown>((R R,R�R.R/R-tevr((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR0As*




	cCsi}d|kra|d\}}}}}||d<||d<||d<||d<||d<|S|jd�|d<|jd�|d<|jd�|d<|jd�|d<|ddkr�|jd�|d<n|jd�|d<|ddkr|jd�|d<n|S(	NRcRRRFRRR�RH(R�R(RIRt
returndictR,R-R�R.R/((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR[s&




cCse|jj}t|j_t}xA|jD]6}|jdkr(|jd|j�r^t}q^q(q(Wx�|jD]�}|jdkrl|r�|jj	|j�r�|jd|j�rlt}qlqlny"|j
d|j�r�t}nWqtjj
k
r|jjtd�|�qXqlqlWxh|jD]]}|r&|jdkr&|jj|j�r\q&n|jd|jdt�r�t}q�q&q&Wx�|jD]�}|jdkr�|r�|jj	|j�r�|jd|j�r�t}q�q�n|jd|j�rt}q|jjtd�|�q�q�Wxh|jD]]}|r-|jd	kr-|jj|j�rcq-n|jd|jdt�r�t}q�q-q-Wx�|jD]u}|jdkr�|r�|jj	|j�r�|jd|j�r�t}q�q�n|jd|j�r
t}q
q�q�WxA|jD]6}|jd
kr|jd|j�rQt}qQqqW||j_|S(sDRepeat the transaction represented by the given
        :class:`yum.history.YumHistoryTransaction` object.

        :param transaction: a
           :class:`yum.history.YumHistoryTransaction` object
           representing the transaction to be repeated
        :param force_reinstall: bool - do we want to reinstall anything that was
           installed/updated/downgraded/etc.
        :param force_changed_removal: bool - do we want to force remove anything
           that was downgraded or upgraded.
        :return: whether the transaction was repeated successfully
        t	ReinstallRct	DowngradesFailed to downgrade: %st
DowngradedRbtUpdatesFailed to upgrade: %stUpdatedtInstallsTrue-Installt
ObsoletingtErase(R{sTrue-InstallR|(R�RJRbt
trans_dataRGR�RcR9RFR�RdR�R�RgRzRvR
R�R�R'R
R9(RIR�tforce_reinstalltforce_changed_removalRbRR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pythistory_redowsj	
$		 	cCsu|jj}t|j_t}xA|jD]6}|jdkr(|jd|j�r^t}q^q(q(Wxx|jD]m}|jdkrly"|jd|j�r�t}nWq�t	j
jk
r�|jj
td�|�q�XqlqlWxZ|jD]O}|jdkr�|jd|j�rt}q6|jj
td�|�q�q�Wx\|jD]Q}|jdkrD|jj|j�rtqDn|jd|j�r�t}q�qDqDWxA|jD]6}|jd
kr�|jd|j�r�t}q�q�q�WxA|jD]6}|jdkr�|jd|j�rt}qq�q�WxA|jD]6}|jdkr+|jd|j�rat}qaq+q+W||j_|S(sCUndo the transaction represented by the given
        :class:`yum.history.YumHistoryTransaction` object.

        :param transaction: a
           :class:`yum.history.YumHistoryTransaction` object
           representing the transaction to be undone
        :return: whether the transaction was undone successfully
        RvRcRzsFailed to downgrade: %sRxsFailed to upgrade: %sR|sDep-InstallR{sTrue-Installt	ObsoletedR}(sDep-InstallsInstallsTrue-Install(R�RJRbR~RGR�RcR9RdR�R�RgRzRvR
R
R�R�R'R9(RIR�RbRR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pythistory_undo�sN
$	 cCs�|j}|j}|j}|jdks6||kr:dS|jdkr\td�|}ntd�||f}d|_|jj|�dS(s�Failure callback for urlgrabber to force a retry if we time out
        (code 12) or error out (code 14) after being redirected (since these
        codes are not in opts.retrycodes).

        This allows for failovers if the URL points to a MirrorManager2 (such
        as download.fedoraproject.org).  If the mirror it redirects to is down
        for some reason, this will ensure that we try again, hopefully getting
        a mirror that works.
        iiNsTimeout on %s, trying agains'Could not retrieve %s: %s, trying againi����(ii(RaRIR!R
RzR(RItdataR�turl_initialt
url_actualR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pytredirect_failure_callback�s
				cCs�t}|j}td�|}|jjtj|�yftj|�}|dkriidd6}d}	n|j
�}|jd}	tj
|d||�}
Wn8tjjk
r�}tjtd�t|���nXd}t}
|r�|r�|jr�|j|d|j�yHtj|d	�}|j
�}|jd
}	tj|d||�}Wntjjk
rv}d}nX|r�tj|tj|
�|j�s�tjtd�||jf��q�td�}|jjtj|�t}
q�nytj|
d
t�}Wn8tk
rD}tjtd�|t|�f��nXg}x�|D]�}i}xAdD]9}||kr�tjtd�|�n||||<qeWtj|d�j�|d<|
|d<t|�|d<|j |�qRW|S(s�
        Retrieve a key file
        @param keyurl: url to the key to retrieve
        Returns a list of dicts with all the keyinfo
        sRetrieving key from %si'Rs
global/gpgkeys/gpgkeyRRsGPG key retrieval failed: RQs.ascs
/gpgkeysigs>GPG key signature on key %s does not match CA Key for repo: %ss,GPG key signature verified against CA Key(s)tmultiplesInvalid GPG Key from %s: %stkeyidR�tuseridtfingerprinttraw_keys2GPG key parsing failed: key does not have value %sthexkeyidt	valid_sigthas_sigN(R�s	timestampsuseridR�R�(!RbR�R
R{RR�R�R�tto_utf8Rt_default_graboptsR�RUturlreadRjRR�R�R/tgpgcakeytgetCAKeyForRepoRTturlopentvalid_detached_sigtStringIOtgpgcadirR9t
getgpgkeyinfoRt
keyIdToRPMVertuppertboolRe(RItkeyurlR[tgetSigt
key_installedR�R�RIR�RctrawkeyR�tsigfileR�t	keys_infoR�tkeyinfotthiskeyR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_retrievePublicKeysh	
	


	%


tGPGc
Csd}|jd�r�|td�}|jj|�}|r�t|�d}td�||dt|d�tj	|�||j
|jdd�f}q�n|dkr�td�||dt|d�tj	|�|jdd�f}n|jj
d	|�dS(
Nsfile:i����saImporting %s key 0x%s:
 Userid     : "%s"
 Fingerprint: %s
 Package    : %s (%s)
 From       : %sR�R�sfile://RsKImporting %s key 0x%s:
 Userid     : "%s"
 Fingerprint: %s
 From       : %ss%s(RR4R"RFtsearchFilesR�R
R-R�tgpgkey_fingerprint_asciitui_from_repoR�RzRv(RIRR�tkeytypeR�tfnameR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_getKeyImportMessageds"			c	s�|jj�j���j}t}��fd�}t}x�|D]�}|j|��}	x�|	D]�}
|jj�}tj	||
d|
d�dkr�|j
jtd�||
df�qbn�j
r�|
dr�|
dr�t}n�|j|
|�t}|jjrt}n�|jjr*t}nr|ry|i�d	6|
d
d
6|
dd6|d6|
dd6|
dd6�}n#|r�|�|
d
|
d�}n|s�t}qbn|jj�}|jtj|
d
��}
|
dkr
td�|
}tj||��n|j
jtd��t}qbWqCW|rP|rPtjtd��n|s~td��j}tj||��n|j��\}
}|
dkr�td�}|j
j|�t|�}tj||��ndS(s�Retrieve a key for a package. If needed, use the given
        callback to prompt whether the key should be imported.

        :param po: the package object to retrieve the key of
        :param askcb: Callback function to use to ask permission to
           import a key.  The arguments *askck* should take are the
           package object, the userid of the key, and the keyid
        :param fullaskcb: Callback function to use to ask permission to
           import a key.  This differs from *askcb* in that it gets
           passed a dictionary so that we can expand the values passed.
        :raises: :class:`yum.Errors.YumBaseError` if there are errors
           retrieving the keys
        cs*|td��dj�j�f7}|S(Ns;


 Failing package is: %s
 GPG Keys are configured as: %s
s, (R
R�R�(R�(R�R[(s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_prov_key_data�sR�R�is)GPG key at %s (0x%s) is already installedR�R�R�R�R�R�R�R�sKey import failed (code %d)sKey imported successfullysDidn't install any keyss�The GPG keys listed for the "%s" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.s+Import of key(s) didn't help, wrong key(s)?N(R]R�RR�RbR�RFR�R�tkeyInstalledRzRR
R�R9R�R�tassumenot	assumeyestpgpImportPubkeyt
procgpgkeyR�R�RRYR-(RIR�taskcbt	fullaskcbtkeyurlsR�R�tuser_cb_failR�R�RRRfR[R�R(((R�R[s0/usr/lib/python2.7/site-packages/yum/__init__.pytgetKeyForPackage~sf	

#			
	
csat}���fd�}t}x��D]�}	|j|	�d��}
x�|
D]�}tt|d��dd!j�tj|�kr�|jjt	d�|	|df�t
}qNn�r9�jd}d	}
g}y(t|d
�j
�}|jd�}Wnttfk
rnXt|d�|kret
}qen,d}
�jre|d
re|dret
}n|s|j||	|
�t}|jjr�t}nd|jjr�t
}nO|r�|i�d6|dd6|dd6|	d6|dd6|dd6�}n|st
}qNqntj|d|dd|�}|sat	d�|d}tj||��n|jjt	d��t
}�rN|rN|d|kr�t|d�}y-|j|dd�|j�|j�Wq�ttfk
r�q�Xq�qNqNWq(W|r/|r/t	d��}tj||��n|s]t	d��j}tj||��ndS(sL
        Retrieve a key for a repository If needed, prompt for if the key should
        be imported using callback
        
        @param repo: Repository object to retrieve the key of.
        @param destdir: destination of the gpg pub ring
        @param keyurl_list: list of urls for gpg keys
        @param is_cakey: bool - are we pulling in a ca key or not
        @param callback: Callback function to use for asking for permission to
                         import a key. This is verification, but also "choice".
                         Takes a dictionary of key info.
        csKtd�}�r!td�}n|td�|�dj��f7}|S(NtNotYessD


 CA Key: %s
 Failing repo is: %s
 GPG Keys are configured as: %s
s, (R
R�(R�tcakeytxt(tis_cakeytkeyurl_listR[(s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��sR�R�ii����s(GPG key at %s (0x%s) is already importedR�s/imported_cakeystCAR/s
R�R�R�R[R�R�R�R�R�tgpgdirsKey %s import failedsKey imported successfullyR-s#Didn't install any keys for repo %ss�The GPG keys listed for the "%s" repository are already installed but they are not correct.
Check that the correct key URLs are configured for this repository.N(RbR�thexRR�R�treturn_keyids_from_pubringRzRR
R9R�R�R�R�R�R�R�R�R�R�R�R�timport_key_to_pubringR�R�R tflushR�R(RIR[tdestdirR�R�RQR�R�R�R�R�RtikfR�tcakeystcakeys_dRfR[R�tikfo((R�R�R[s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_getAnyKeyForRepo�s|

2
				 

	
cCs)|j||j|jdtd|�dS(s-Retrieve a key for a repository.  If needed, use the given
        callback to prompt whether the key should be imported.

        :param repo: repository object to retrieve the key of
        :param callback: callback function to use for asking for
           verification of key information
        R�RQN(R�R�R�Rb(RIR[RQ((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
getKeyForRepoFscCs)|j||j|jdtd|�dS(s-Retrieve a key for a repository.  If needed, use the given
        callback to prompt whether the key should be imported.

        :param repo: repository object to retrieve the key of
        :param callback: callback function to use for asking for
           verification of key information
        R�RQN(R�R�R�R9(RIR[RQ((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�PscCs!d�}|jjdkrdS|jjr/dSg}|jj�}tj|�\}}i}x�|jj�D]~}|j	dkr�qon|j
r�qon|j|j�s�qon|j
|kr�|jg||j
<qo||j
j|j�qoWx�|D]�}|jjd|�}	||	�}	t|	�t||�}
|
|jjkrQq�n|
|jj}xc|	D][}|j|jf||fkr�qhn|dkr�Pn|j|||f�|d8}qhWq�WxO|D]G\}}
|jj|�}t|
�dkr�|jj|
d�q�q�WdS(	s� Limit packages based on conf.installonly_limit, if any of the
            packages being installed have a provide in conf.installonlypkgs.
            New in 3.2.24: Obey yumdb_info.installonly data. cSs�g}g}g}x�t|�D]�}d|jkrG|j|�qn|jjdkr_qntrx|j|�qn|jjdkr�|j|�q|jjdkr�|j|�q|j|�qW|||S(sb Allow the admin to specify some overrides for installonly pkgs.
                using the yumdb. tinstallonlytkeepsremove-firstsremove-last(R�R�ReR�R9(Rtret_begtret_midtret_endR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt_sort_and_filter_installonly_s$

iNR�R�Ri(R�R�(R�tinstallonly_limitR�t_check_future_rpmdbvRFR�R�t"get_running_kernel_version_releaseR�R�R�R�R�RReR+R"RRRHR2(RIR�RcRtcur_kernel_vtcur_kernel_rRjR�RR�ttotaltnumleftR�tnewposR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�ZsJ		

cCs�|stj�}n|jtj�|j|�}|dkrc|jtj�|j||�n|jtj�|j	|d|�|jtj
�|j|d|�dS(sqProcess the current transaction.  This involves the
        following steps:
          - Download the packages
          - Check the GPG signatures of the packages
          - Run the test RPM transaction
          - Run the RPM Transaction
        The *callback*.event method is called at the start, and
        between each step.

        :param callback: a callback object, which must have an event
           method
        :param rpmTestDisplay: name of the display class to use in the
           RPM test transaction
        :param rpmDisplay: name of the display class to use in the rpm
           transaction
        tdisplayN(t	callbackstProcessTransNoOutputCallbackteventtPT_DOWNLOADt_downloadPackagesRtPT_GPGCHECKt_checkSignaturest
PT_TEST_TRANSt_doTestTransactiontPT_TRANSACTIONt_doTransaction(RIRQtrpmTestDisplayt
rpmDisplayR((s0/usr/lib/python2.7/site-packages/yum/__init__.pytprocessTransaction�scCstd�td�|jj���}t|�dkr=dS|jtj|�y|j	|�}Wn&t
k
r�tjt
d�g�nXt|�dkrt
d�g}xI|D]A}tj||�}x%|D]}|jd||f�q�Wq�Wtj|�n|S(s/ Download the need packages in the Transaction cSs|jS(N(R�(R((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��scSs
|jdkS(NR�R�(R�R�(R�(R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��sis!Unable to find a suitable mirror.s3Errors were encountered while downloading packages.s%s: %sN(R/tfilterR�R�R"RR�R�tPT_DOWNLOAD_PKGSR~R�R�R�R
R�R�RetYumDownloadError(RIRQtdlpkgsRgterrstrR|RoR((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s"


cCsjxc|D][}|j|�\}}|dkr4qq|dkrV|j||j�qtj|�qWdS(s/ The the signatures of the downloaded packages ii(RYR�t_askForGPGKeyImportR�tYumGPGCheckError(RIRRQR�R[R(((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s
cCstS(su 
        Ask for GPGKeyImport 
        This need to be overloaded in a subclass to make GPG Key import work
        (Rb(RIR�R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�scCs�|j�|j}d|_|jdd�|jjtjtd��|j	�}|r�t
}x)|D]!}|jd�r�qgnt}qgW|r�td�g}|j
|�tj|�ntd�g}|j
|�tj|�ni}x'dgD]}	t|j|	�||	<q�Wt|dt
�}
|r<||
_n|jj|
d	|�}~
t|�dkr�td
�}x|D]}
|d|
7}q|Wtj|�n|`||_dS(
s Do the RPM test transaction tkeepoldisRunning Transaction Checksrpmlib(s'ERROR You need to update rpm to handle:s)ERROR with transaction check vs depsolve:tdiskspacecheckttestR�sTest Transaction Errors: s  %s
N(tinitActionTsR�Rt
populateTsR{RR�R�R
t_run_rpm_checkR9R4RbRR�tYumRPMCheckErrorR�R�R+R�RR�R"tYumTestTransactionError(RIRQR�tdscbtmsgstrpmlib_onlyR�tretmsgsttsConftfeaturettestcbttserrorsR�tdescr((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�	sF
		





cCsl|j�|jdd�|jj�|jj�t|dt�}|rX||_n|jd|�dS(s do the RPM Transaction R�iR�R�N(	R�R�RR�torderR+R,R�R�(RIRQR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�<s


c	Cs�g}|jj�x�|jj�D]�}t|�}|jtjkr�|j�}|jj	d|j
g�}|r�|r�|d}|d}|jj|�j�}t
|�dkr�|d|kr�q#q�q�n|j|�q#W|S(NR�ii(RR�RQR.RXRtRPMPROB_CONFLICTR�RFR�tpkgNEVRR�R�R"Re(	RIR�RiR�ttokensRRR�tprovs((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�Is


"c
Ks�tj|�}||_|jj|_|jdt�}|r�g}|r�x<|D]+}|rR|jt	||jj
��qRqRWn|}||_n|r�|r�t	||jj
�}n||_n|j
d|jj�t|_d|_|jj|_|jj|_|jj|_|jj|_x=|j�D]/}	t||	�sRq7nt||	||	�q7W|jj|�|jj|j�|S(sRAdd and enable a repository.

        :param repoid: a string specifying the name of the repository
        :param baseurls: a list of strings specifying the urls for
           the repository.  At least one base url, or one mirror, must
           be given
        :param mirrorlist: a list of strings specifying a list of
           mirrors for the repository.  At least one base url, or one
           mirror must be given
        :param kwargs: key word arguments to set any normal repository
           attribute
        :return: the new repository that has been added and enabled
        tvariable_convertRXi(RRRR�RWR	R�R9ReRR�R�t
mirrorlisttsetupRXtenablegroupstmetadata_expireR�t
repo_gpgcheckR�R�R�RR�R]R�t
enableRepoR�(
RIRtbaseurlsRRtnewrepotvar_converttreplacedR�R|((s0/usr/lib/python2.7/site-packages/yum/__init__.pytadd_enable_repods<	
&		s/$basearch/$releasevercCs0|rtj�dkrtS|dkr;tjd�}n|dkrPd}nytj||�}Wn?ttfk
r�}|j	j
td�t|��d}nX|dkr�t
S|t||jj�7}t|d�r�||j_n|jj|�t|d�s |jj|_n||j_tS(slSet a new cache directory.

        :param force: whether to force the cache directory to be
           changed
        :param tmpdir: a temporary directory
        :param reuse: whether the temporary directory can be reused
        :param suffix: suffix to attach to the directory name
        :return: whether the new cache directory is successfully set
        itTMPDIRs/var/tmpsCould not set cachedir: %sR�RN(R�R�R9RtgetenvR�tgetCacheDirR�R�RzRvR
R/RbRR�R�RR�RWR]R&R(RIR�ttmpdirtreusetsuffixRWR�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR&�s*	 
cCsx|j|jkrtS|j|�r)tS|j|jjkrBtStjj|j|j�ratS|j|�rttStS(s�returns True if pkg1 can update pkg2, False if not. 
           This only checks if it can be an update it does not check if
           it is obsoleting or anything else.(	RRbR�RFR,RCRR�R9(RItpkg1tpkg2((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR6�scCsm|jjd|jj��d}x1|jj�D] }||j�7}|d7}q2W|jjd|�dS(Nsconfig-mainRs
sconfig-repos(R�R�R�tdumpR]R^(RItmyreposR[((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��scCs|jjdd|�|S(s�Callback to call a plugin hook for pkg.verify().

        :param verify_package: a conduit for the callback
        :return: *verify_package*
        tverify_package(R;R�(RIR((s0/usr/lib/python2.7/site-packages/yum/__init__.pytverify_plugins_cb�sc
Csr|jjrD|r,|jjtd��dStjtd���n|s�dtjd�}t	j
ddd|�\}}tj|d�}nt
|d�}||_d	|jjd
t�dd	|jj�g}|jjdkr�|dg7}nj|d	t|jj��d
g7}xC|jj�D]2}|d|jt|j�|jjfg7}q.W|dd|jj�fg7}|d	t|jj��g7}x*|jj�D]}||j�g7}q�Wy$|j dj!|��|j"�Wnvt#t$fk
rm}	d|_|rE|jjtd�|t%|	�f�qntjtd�|t%|	�f��nXdS(s�Save out a transaction to a .yumtx file to be loaded later.

        :param filename: the name of the file to save the transaction
           in.  If *filename* is not given, a name will be generated
        :param auto: whether to output errors to the logger, rather
           than raising exceptions
        :raises: :class:`yum.Errors.YumBaseError` if there are errors
           saving the transaction
        s>Dependencies not solved. Will not save unresolved transaction.Nsyum_save_tx.%ss%Y-%m-%d.%H-%M.Rs.yumtxtprefixR�s%s
R�is1
is	%s:%s:%s
s%s:%s
R�Rs&Could not save transaction file %s: %s(&R�t_unresolvedMembersRzRvR
R�R�R�tstrftimettempfiletmkstempR�tfdopenR�RtRFR�R9Rt
getTsFlagsRoRR"R]R^R�R`R�R�R�R�t_dumpR R�R�R�R�R/(
RIR#R�RR'R�R�R/R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR��s<
	$0  	)cCs�yt|d�j�}Wn&ttfk
rA}t|�d
fSX|sXtd�d
fS|ddkr�|ddkr�|dd!}q�|dd	!}nd
|fS(s* Load the file into a simple data format. R/sFile is empty.is
saved_tx:
i����shistory addon-info
ii����i����N(R�t	readlinesR�R�R/RR
(RIR#R�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt
_load_ts_datasc!
Csf|j|�}|dd&k	rEtjtd�||df��n|d}|d&krj|jj}n|d&kr�|jj}n|d&kr�|jj}n|r�t	}n|dj
�}|t|jj
dt	�d�krAtd�}|r|td�7}|jjt|��qA|td�7}tj|��nyt|dj
��}Wn4ttfk
r�}	td�}tj|��nX|jj|�t|d	j
��}
g}d
|
}d&}
xk|d
|!D]\}|j
�jd�}|r+|ddkr+d
|d|d	f}
q�n|j|�q�Wt||j
��}|d}d}t}d&}t}x�||D]�}|j�}|jd�r3|r�|jj|�||jjkr�|r�|jjj|�q�nt}|jd�dj
�jd�\}}t|j
��}t|j
�jd��}y_|tkrd|j |�}n=|t!kr�|j"|�}ntd|�}tj|��Wnftjk
r
}	t	}tdt|�|f�}|s�tj|��q0t	}|jj|�q3X|d7}t#j$|�}||_%qn|j
�}|jdd�\}}|j&�}|d'kr�|j
�j'�}|dkr�t(||t�qT|dkrTt(||t	�qTn�|dkr�t(||t|j
���ng|dkr|j)j*|jd��n?|d(krx0|j
�jd�D]�}|jd �\}}yO|d!kr�|j t|jd���}n|j"t|jd���}WnHtjk
r�}	td"t|�|f�}|jj|�t	}q7Xt+||�}|j|�t(|||�q7Wn5|d#kr>x&|jd�D]�}|jd�\}} |jd �\}}yO|d!kr�|j t|jd���}n|j"t|jd���}WnHtjk
r}	td"t|�|f�}|jj|�t	}q;Xt+||�}|j|| f�t(|||�q;Wnt(|||j
��|rt	}qqW|jj|�||jjkr�|jjj|�n||kr�t	}n|rtd$�}|r�t	}|td%�7}|jj|�q|td�7}tj|��nt,|j�|kr5d&}
n|
d&k	rY||
|f|j_-n|jj.�S()s,Load a transaction from a .yumtx file.

        :param filename: the name of the file to load the transaction
           from
        :param ignorerpm: whether to ignore starting rpmdb version mismatch.
        :param ignoremissing: whether to ignore that there may be
           transaction members missing
        :param ignorenewrpm: whether to ignore ending rpmdb version mismatch.
        :return: the members of the loaded transaction
        :raises: :class:`yum.Errors.YumBaseError` if there are problems
           loading the transaction
        is/Could not access/read saved transaction %s : %siR�s/rpmdb ver mismatched saved transaction version,s ignoring, as requested.s
 aborting.s+cannot find tsflags or tsflags not integer.iiR�R�s%s:%ssmbr:R�RHs(Found txmbr in unknown current state: %ss$Could not find txmbr: %s in state %stisDepR�tfalseR�R�RlR*R&t
downgraded_byR�RDRJR2RGR�s(Could not find txmbr: %s from origin: %sRFsCTransaction members, relations are missing or ts has been modified,s- ignoring, as requested. You must redepsolve!N(R&s	reinstall(s
updated_bysobsoleted_byR(s
downgradessupdatess	obsoletess
depends_on(/R%RR�R�R
R�tloadts_ignorerpmtloadts_ignorenewrpmtloadts_ignoremissingR9R�R�RFR�RzRvRRR�RtsetFlagsR�ReRbtrstripR4R�R�RR'RRBR�RDR�R�tTransactionMembert
current_statetlstripR�R�RlRR�R"R�R�(!RIR#t	ignorerpmt
ignoremissingtignorenewrpmR�trpmvR�R�R�tnumreposR]trindext
future_rpmdbvR/R[tnumpkgstpkgstarttpkgcounttpkgprobtcurpkgt
missinganyR7RcR/R�R
R.tpkgspectorigintcurlistR�RH((s0/usr/lib/python2.7/site-packages/yum/__init__.pytload_ts.s&
	
%

(
		!"

!"

		c
Cs�t�}t�}g|jjdt�D]}|j^q(}i}x!|jj�D]}t||<qSWx,|D]$}x|j�D]
}|j	j
dd�dkr�t||<q�n||kr�q�n|j|||�r�q�nt}	x&|j
�D]}
|
|kr�q�q�q�W|	s�d|j|jfGH|jd|�}xP|D]E}|jd|�|j|krz|j|j�n|j|�qBWq�q�WqnW|jjtjdt|��dS(	s�take the set of pkgs being removed and remove any pkgs which are:
           1. not required anymore
           2. marked as a 'dep' in the 'reason' in the yumdb. R�R�RR4s6---> Marking %s to be removed - no longer needed by %sR�s+Found and removing %s unneeded dependenciesN(R�R�R�R�R�RFR�R9trequired_packagesR�R�Rbt_has_needed_revdepstrequiring_packagesRR'R'ReR�R{RR�R�R"(
RItfound_leavestcheckedtttbeingremovedtokay_to_removeR�R�trequiredtstill_neededt	requiringR�R�((s0/usr/lib/python2.7/site-packages/yum/__init__.pyR�s8		+



cCs�||s-|jjtjtd�|�tS|jjtjtd�|�i}x!|jj�D]}t||<qbWx|D]}t||<q}Wg}|j	|�x�|r�|d}||s<||s�|jjtjtd�|�t||<tS|j
jdd�dkrM|jjtjtd�||�t||<t||<tSxo|jD]d\}}	}
|j
j||	|
�j�rWt||<t||<|jjtjtd�|�tSqWWxm|j|jD][}|j
j|dd
�j�r�t||<t||<|jjtjtd�|�tSq�Wt||<nt}|j�}
x/|
D]'}||sU|j	|�t}PqUqUW|r�|j�q�q�W|jjtjtd	�|�tS(Ns2%s has been visited already and cannot be removed.sExamining revdeps of %si����R�RR4s*%s has revdep %s which was user-installed.s*%s is needed by a package to be installed.s!%s has no user-installed revdeps.(NNN(R{RR�RER
R9RFR�RbReR�R�RWR�tgetNewRequiresR�R�R!RRDtpop(RIR�RHtok_to_removetvisitedR�tstackR<tprovntprovftprovevrR7tall_leaves_visitedtleavestleaf((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRC6s^


	



"









(�RKRLRMRJR�R�R�R�R9R;R<RR�R�R�R�R�R�R�RR�RRR�RR!RbR R+R.R-R>R@R?R]RaR\R�R�R�R�R�tpropertyR]RHR�RFR�RRRR�R�R�tupinfoRqR�R�R�R�R�R!R"R#R
RR�RR1R
R8R�R�RIRmR�R�R9R5R7tYUM_PID_FILERR�tstaticmethodRRRR<RAR~R�R�RYR�R�R�R�R�R�R�R�R�R�R�R�RR�RR8R>RFRTRaRjRkRnR�R�R�R�R�R�R�RR�R$R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RRR9R"R%R*R
R'RYRZR�ReRORdR0RR�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�R�RR&R6R�RR�R%RAR�RC(((s0/usr/lib/python2.7/site-packages/yum/__init__.pyRe�s�	+	
	
			}	Y						
	
	*	:				0				M	#	 	
	
																																										�	n	
				
								C	��	 	.	7	�	'	1	?	*						
	
				�	 �	�	&	#(	l	#		!�+I'			%		&	H	F												�			�UU�=	�	K	:	N_i

	\#			3
	:	#				3	�	3((((kRMR�tos.pathRRsR	R%R.R!R�R�R�Rxtlogging.configR�RRhtyum.i18nR�R�R
R
RRR�RRR�RtrpmUtils.updatesRCt
rpmUtils.archRRRRtrpmUtils.miscutilsRtrpmUtils.transactionRR�R]RR�R�RRR�RUturlgrabber.grabberRRturlgrabber.progressRtpackageSackRRRRfR;R�RR�tyum.historytyum.fssnapshotsR R!tyum.igroupsR�R�tsimplefilterR�R9R#R$R%R&R'R(R)t	constantstyum.rpmtransR+R,R-R.R/tyum.drpmR0R1R�RZR2R3t__version__RR�RRRR�RMR5RNRYRgRe(((s0/usr/lib/python2.7/site-packages/yum/__init__.pyt<module>s�			"
.

Zerion Mini Shell 1.0