Anons79 Mini Shell

Directory : /lib/python2.7/site-packages/ansible/module_utils/
Upload File :
Current File : //lib/python2.7/site-packages/ansible/module_utils/yumdnf.pyc

�
�Udac;@sddlZddlZddlZddlZddlmZmZddlmZddl	m
Z
edededdd	e�d
eddd	e�dededdd	e�d
edd�deddd	d�deddd	e�deddd	g�deddd	g�deddd	e�deddd	d�deddd	g�deddd	g�deddd	g�deddd	d�deddd	e�deddd	e�dedd�dedddddd gd	g�d!ed	d�d"eddd	e�d#eddd	e�d$eddd	dd%d&d'd(d)d*g�d+eddd	edd,g�d-eded	d.dd�d/eddd	e�d0edd1d	d2��d3ddd+ggd4ddggd5e�Zd6e
ee�fd7��YZdS(8i����N(tABCMetatabstractmethod(t	to_native(twith_metaclasst
argument_spectallow_downgradettypetbooltdefaultt
autoremovetbugfixtrequiredt	conf_filetstrtdisable_excludestdisable_gpg_checktdisable_plugintlisttdisablerepot
download_onlytdownload_dirt
enable_plugint
enablerepotexcludetinstallroott/tinstall_repoquerytinstall_weak_depstnametelementstaliasestpkgt
releasevertsecuritytskip_brokentstatetchoicestabsentt	installedtlatesttpresenttremovedtupdate_cachesexpire-cachetupdate_onlytnotvalidate_certstlock_timeouttintitrequired_one_oftmutually_exclusivetsupports_check_modetYumDnfcBsPeZdZd�Zed��Zd�Zd�Zd�Zed��Z	RS(s�
    Abstract class that handles the population of instance variables that should
    be identical between both YUM and DNF modules because of the feature parity
    and shared argument spec
    csA||_|jjd|_|jjd|_|jjd|_|jjd|_|jjd|_|jjd|_|jjd|_|jjj	dg�|_
|jjd	|_|jjd
|_|jjd|_
|jjj	dg�|_|jjd
|_|jjd|_|jjd|_|jjd|_|jjd|_g|jjdD]}|j�^qm|_|jjd|_|jjd|_|jjd|_|jjd|_|jjd|_|jjd|_|jjd|_|jjd|_|j|j�|_|j|j
�|_
|j|j�|_|j|j�|_xY|jD]N�d�kr~t�fd�dddd gD��r~|j d!d"�q~q~W|jdkr|jr�d#|_qd$|_n|jr4|jd#kr4|jj d!d%d&g�nd'|_"dS((NRR	R
RRRRRRRRRRRRRRRR R!R"R#R+R*R-R.t c3s|]}|�kVqdS(N((t.0tspec(R(s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pys	<genexpr>ist@t>t<t=tmsgs�It appears that a space separated string of packages was passed in as an argument. To operate on several packages, pass a comma separated string of packages or a list of packages.R%R(s4Autoremove should be used alone or with state=absenttresultss/var/run/yum.pid(#tmoduletparamsRR	R
RRRRtgetRRRRRRRRRRtstriptnamesR R!R"R#R+R*R-R.t!listify_comma_sep_strings_in_listtanyt	fail_jsontNonetlockfile(tselfR=tp((Rs?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pyt__init__@sX	,5		
cCsdS(N((RG((s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pytis_lockfile_pid_valid�scCs1tjj|j�s'tj|j�o0|j�S(N(tostpathtisfileRFtglobRJ(RG((s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pyt_is_lockfile_present�scCs|j�sdS|jdkr\x:td|j�D]#}tjd�|j�s2dSq2Wn|jjddj|j��dS(s>Poll until the lock is removed if timeout is a positive numberNiiR;s'{0} lockfile is held by another process(	ROR.trangettimetsleepR=RDtformattpkg_mgr_name(RGt	iteration((s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pyt
wait_for_lock�s
cCs�g}g}xY|D]Q}d|kr|j|�|jg|jd�D]}|j�^qH�qqWx|D]}|j|�qoW|j|�|dgkr�gS|S(s�
        method to accept a list of strings as the parameter, find any strings
        in that list that are comma separated, remove them from the list and add
        their comma separated elements to the original list
        t,t(tappendtextendtsplitR@tremove(RGt	some_listtnew_listtremove_from_original_listtelementte((s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pyRB�s

6

cCs
t�dS(N(tNotImplementedError(RG((s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pytrun�s(
t__name__t
__module__t__doc__RIRRJRORVRBRc(((s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pyR39s	A			(RKRQRNttempfiletabcRRtansible.module_utils._textRtansible.module_utils.sixRtdicttFalseREtTruetyumdnf_argument_spectobjectR3(((s?/usr/lib/python2.7/site-packages/ansible/module_utils/yumdnf.pyt<module>sL$*	

Anons79 File Manager Version 1.0, Coded By Anons79
Email: [email protected]