%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/self/root/usr/lib/yum-plugins/
Upload File :
Create Path :
Current File : //proc/self/root/usr/lib/yum-plugins/universal-hooks.pyc

�
[Q\c@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�}	x�|j�D]x}
|
j
}|	j|d�|	j�t|d|d	||�x.|D]&}||j|�rd
||<qqWq�Wx-|D]%}
t|d	|
|d|	j
�qLW|	j�dS(Ns/multi_pkgs/s/*t__WILDCARD__s.*t^t$s
s/pkgs/Ris--pkg_list=(t	getTsInfoR
RR	R
tbasenametnormpathtreplacetretcompilettempfiletNamedTemporaryFilet
getMemberstnametwritetflushRtsearchtclose(tbase_dirRtslotttstwc_slot_dirt
wildcard_listR	tregxtwildcard_to_runtpkgs_file_pathtmembertpkgtwctwc_dir((s'/usr/lib/yum-plugins/universal-hooks.pyt
_run_pkg_dirs<s.	


#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_hookhscCs*|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
    R8R+s/postconfigN(R9R:R(RR+((s'/usr/lib/yum-plugins/universal-hooks.pytpostconfig_hookrscCs*|jddt�}t|d|�dS(sj
    Called early in Yum's initialisation. May be used for general plugin
    related initialisation.
    R8R+s/initN(R9R: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.
    R8R+s/predownloadN(R9R: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.
    R8R+s
/postdownloadN(R9R: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.
    R8R+s
/prereposetupN(R9R: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.
    R8R+s/postreposetupN(R9R: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.
    R8R+s/excludeN(R9R:R(RR+((s'/usr/lib/yum-plugins/universal-hooks.pytexclude_hook�scCs*|jddt�}t|d|�dS(s6
    Called before Yum begins package resolution.
    R8R+s/preresolveN(R9R:R(RR+((s'/usr/lib/yum-plugins/universal-hooks.pytpreresolve_hook�scCs*|jddt�}t|d|�dS(s<
    Called just after Yum finishes package resolution.
    R8R+s/postresolveN(R9R: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.
    R8R+tpretranss	/pretransN(R9R:R7R(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.
    R8R+t	posttranss
/posttransN(R9R:R7R(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.
    R8R+s/closeN(R9R: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'.
    R8R+s/cleanN(R9R:R(RR+((s'/usr/lib/yum-plugins/universal-hooks.pyt
clean_hook�s(RR
R!R#tyum.pluginsRRRtrequires_api_versiontplugin_typeR:RR7R;R<R=R>R?R@RARBRCRDRFRHRIRJ(((s'/usr/lib/yum-plugins/universal-hooks.pyt<module>s(0	,	
														
	
		

Zerion Mini Shell 1.0