Viewing File: /usr/lib/yum-plugins/universal-hooks.pyc

ó
8yjc@sûddlZddlZddlZddlZddlmZmZmZdZeefZ	dZ
dd„Zd„Zd„Z
d	„Zd
„Zd„Zd„Zd
„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„ZdS(iÿÿÿÿN(t
PluginYumExitt	TYPE_COREtTYPE_INTERACTIVEs2.3s/etc/yum/universal-hookstcCs'|jdƒ|jdƒtjj|ƒs0dSxðttj|dƒƒD]Õ}tj|tjƒrt	|ƒrÄtj
|d|ƒ}|dkr|jdd|d|dt|ƒƒqqtj
|ƒ}|dkr|jdd	|d
t|ƒƒqqJ|jdd	|dƒqJWdS(Nt*t/s/*t iis!!!! "s" did not exit cleanly: s!!!! s did not exit cleanly: s is not executable(
trstriptostpathtisdirtNonetsortedtglobtaccesstX_OKtlentsystemtinfotstr(tdirtconduittargstscripttexit((s'/usr/lib/yum-plugins/universal-hooks.pyt_run_dir!s

 0(cCsÀ|jƒ}|d|}i}x‡tj|dƒD]r}tjj|ƒr4tjjtjj|ƒƒ}|}|jddƒ}tj	d|dƒ}|||<q4q4Wi}t
jƒ}	i}
|jƒ}x±t
t|ƒƒD]}|
j|jƒrÿqánd|
|j<|j}
|	j|
dƒ|	jƒt|d	|
d
||ƒx.|D]&}||j|
ƒrTd||<qTqTWqáWx-|D]%}t|d
||d|	jƒq‰W|	jƒdS(Ns/multi_pkgs/s/*t__WILDCARD__s.*t^t$is
s/pkgs/Rs--pkg_list=(t	getTsInfoR
RR	R
tbasenametnormpathtreplacetretcompilettempfiletNamedTemporaryFilet
getMemberstlisttsetthas_keytnametwritetflushRtsearchtclose(tbase_dirRtslotttstwc_slot_dirt
wildcard_listR	tregxtwildcard_to_runtpkgs_file_pathtmembers_seentmemberstmembertpkgtwctwc_dir((s'/usr/lib/yum-plugins/universal-hooks.pyt
_run_pkg_dirs<s8
	


#cCs*|jddtƒ}t|d|ƒdS(s£
    Called first as plugins are initialised. Plugins that need to extend Yum's
    configuration files or command line options should do so during this slot.
    tmainR.s/configN(t
confStringtdef_base_dirR(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytconfig_hooknscCs*|jddtƒ}t|d|ƒdS(sÿ
    Called immediately after Yum's config object is initialised. Useful for
    extending variables or modifying items in the config, for example the
    $ variables that are used in repo configuration.
    Note: Only available in yum 3.1.7 or later
    R=R.s/postconfigN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytpostconfig_hookxscCs*|jddtƒ}t|d|ƒdS(sj
    Called early in Yum's initialisation. May be used for general plugin
    related initialisation.
    R=R.s/initN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pyt	init_hookƒscCs*|jddtƒ}t|d|ƒdS(s‹
    Called just before Yum starts downloads of packages. Plugins may access
    information about the packages to be downloaded here.
    R=R.s/predownloadN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytpredownload_hookŒscCs*|jddtƒ}t|d|ƒdS(sˆ
    Called just after Yum finishes package downloads. Plugins may access
    error information about the packages just downloaded.
    R=R.s
/postdownloadN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytpostdownload_hook•scCs*|jddtƒ}t|d|ƒdS(sH
    Called just before Yum initialises its repository information.
    R=R.s
/prereposetupN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytprereposetup_hookžscCs*|jddtƒ}t|d|ƒdS(sG
    Called just after Yum initialises its repository information.
    R=R.s/postreposetupN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytpostreposetup_hook¦scCs*|jddtƒ}t|d|ƒdS(sv
    Called after package inclusion and exclusions are processed. Plugins
    may modify package exclusions here.
    R=R.s/excludeN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytexclude_hook®scCs*|jddtƒ}t|d|ƒdS(s6
    Called before Yum begins package resolution.
    R=R.s/preresolveN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytpreresolve_hook·scCs*|jddtƒ}t|d|ƒdS(s<
    Called just after Yum finishes package resolution.
    R=R.s/postresolveN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytpostresolve_hook¿scCs:|jddtƒ}t||dƒt|d|ƒdS(s=
    Called before Yum begins the RPM update transation.
    R=R.tpretranss	/pretransN(R>R?R<R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pyt
pretrans_hookÇscCs:|jddtƒ}t||dƒt|d|ƒdS(sG
    Called just after Yum has finished the RPM update transation.
    R=R.t	posttranss
/posttransN(R>R?R<R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pytposttrans_hookÑscCs*|jddtƒ}t|d|ƒdS(sl
    Called as Yum is performing a normal exit. Plugins may wish to
    perform cleanup functions here.
    R=R.s/closeN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pyt
close_hookÛscCs*|jddtƒ}t|d|ƒdS(sŠ
    Called during Yum's cleanup.  This slot will be executed when Yum
    is run with the parameters 'clean all' or 'clean plugins'.
    R=R.s/cleanN(R>R?R(RR.((s'/usr/lib/yum-plugins/universal-hooks.pyt
clean_hookäs(RR
R!R#tyum.pluginsRRRtrequires_api_versiontplugin_typeR?RR<R@RARBRCRDRERFRGRHRIRKRMRNRO(((s'/usr/lib/yum-plugins/universal-hooks.pyt<module>s(0	2	
														
	
		
Back to Directory File Manager