ó ĮHżfc@sūddlZddlZddlZddlZddlmZmZmZdZeefZ dZ dd„Z d„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|j dd|d|dt |ƒƒqqtj |ƒ}|dkr|j dd |d t |ƒƒqqJ|j dd |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ƒ}|||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#t yum.pluginsRRRtrequires_api_versiont plugin_typeR?RR<R@RARBRCRDRERFRGRHRIRKRMRNRO(((s'/usr/lib/yum-plugins/universal-hooks.pyts(0   2