ok

Mini Shell

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

�
֖�]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�}	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	
														
	
		

Zerion Mini Shell 1.0