Anons79 Mini Shell

Directory : /usr/lib/python2.7/site-packages/dnf/cli/commands/
Upload File :
Current File : //usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyo

�
�[/\c@@s�ddlmZddlmZddlZddlmZddlZddlZddl	m
Z
ddlmZddl
mZejd�Zd	e
jfd
��YZdS(i(tabsolute_import(tunicode_literalsN(tchain(tcommands(tOptionParser(t_udnftInstallCommandcB@s�eZdZiejd6ejd6ejd6ZdZde	ej
��Zed�Z
ed��Zd	�Zd
�Zd�Zd�Zd
�Zd�Zd�Zd�Zd�ZRS(uUA class containing methods needed by the cli to execute the
    install command.
    u	install-nu
install-nau
install-nevraualternative-for({})uinstallulocalinstallu,install a package or packages on your systemcC@s8|jddddtd�dtjdtd��dS(	Nupackagetnargsu+tmetavaruPACKAGEtactionthelpuPackage to install(tadd_argumentRRtParseSpecGroupFileCallback(tparser((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyt
set_argparser1s	cC@si|jj}t|_t|_t|_t|_tj|j	|j�|j
jsetj|j	�ndS(u�Verify that conditions are met so that this command can run.
        That there are enabled repositories with gpg keys, and that
        this command is called with appropriate arguments.
        N(
tclitdemandstTruetsack_activationtavailable_repost	resolvingt	root_userRt_checkGPGKeytbasetoptst	filenamest_checkEnabledRepo(tselfR((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyt	configure7s				c
C@s;g}g}g}|j�}|jj|j|jjj��|jjdgkr�|jjsm|jj	r�|j
|jj�|jjjr�t
jjtd���q�ng}|jjr�|jjdgkr�t
jjr�y>t
jjj|j�}|j|jjd|jjj�Wq�t
jjk
r�}|jrcx!|jD]}|j|�qIWn|jr�x%|jD]}|jd|�qvWn|j}	|	r�tjt
jjj|	��q�q�Xq�|jj}n|jjr*|r*|j|jj�|jjjr6t
jjtd���q6n|j �}|r||r||j|�|jjjr�t
jjtd���q�n+|r�|jjdgkr�|j!|�n|jjdgkr�|j"|�}nt#|�dks�t#|�dks�|r7|jjjr7t
jj$td�ddj%|�d	|��ndS(
NulocalinstalluNothing to do.tstrictu@iuUnable to find a matchtpkg_specu tpackages(&t_get_nevra_forms_from_commandRt _populate_update_security_filterRRtsacktquerytcommandt	grp_specst	pkg_specst_log_not_valid_rpm_file_pathstconfRtdnft
exceptionstErrorRtWITH_MODULEStmoduletmodule_baset
ModuleBasetinstallt
MarkingErrorstno_match_group_specstappendterror_group_specstmodule_debsolv_errorstloggerterrortformat_modular_solver_errorsRt_inform_not_a_valid_combinationt_install_filest_install_groupst_install_packagestlentPackagesNotAvailableErrortjoin(
Rterr_pkgsterrsterror_module_specstnevra_formstskipped_grp_specsR.tete_specR5((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pytrunEsX"-!&			
9cC@s?g|jjD].}|t|jj��kr
|j|^q
S(N(RR$tlistRCtkeys(RR$((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyR zscC@sdtd�|�}xKt|jj|�D]4}td�}tj||jjj	j
|��q(WdS(NcS@sd|S(Nu@((tg((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyt<lambda>�suNot a valid rpm file path: %s(tmapRRR&RR6tinfoRtoutputttermtbold(RR%tgroup_namestpkgtmsg((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyR'�scC@sCx<|D]4}td�}tj||jjjj|��qWdS(NuNot a valid form: %s(RR6twarningRRNRORP(RtformstformRS((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyR9�s
cC@s�g}|jjj}x�|jj|jjd|d|jjj�D]x}y|jj|d|�WqCt	j
jk
r�td�}t
j||jjjj|j��|j|�qCXqCW|S(NRtprogressuNo match for argument: %s(RR(Rtadd_remote_rpmsRRRNRWtpackage_installR)R*tMarkingErrorRR6RMRORPtlocationR3(RR@RRRRS((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyR:�s%cC@s{|jjdt�y5|jj|t|jjj�d|jjj�Wn,tj	j
k
rv|jjjrw�qwnXdS(Ntarch_filterR(Rt
read_compsRtenv_group_installttupleR(tgroup_package_typesRR)R*R+(RR%((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyR;�sc	C@s�|jjj�jd|jj|��}|r�td�}tj|j|dj	t
tg|D]}|j^q^�����ndS(Ntprovidesu/There are following alternatives for "{0}": {1}u, (
RR"R#tfiltermtalternatives_providetformatRR6RMR?tsortedtsettname(RRR#RStalt((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyt_report_alternatives�scC@s�g}|jjj}x�|jjD]�}y |jj|d|d|�Wq"tjjk
r�t	d�}t
j||jjj
j|��|jj|�|j|�|j|�q"Xq"W|S(NRRUuNo match for argument: %s(RR(RRR&R0R)R*RZRR6RMRNRORPt_report_icase_hintRiR3(RRCRARRRS((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyR<�s "
(uinstallulocalinstall(t__name__t
__module__t__doc__thawkeyt	FORM_NAMEtFORM_NAt
FORM_NEVRARCRcR_RItaliasesRtsummarytstaticmethodRRRGR R'R9R:R;RiR<(((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyR%s"


		5					
		(t
__future__RRtloggingt	itertoolsRRntdnf.exceptionsR)tdnf.cliRtdnf.cli.option_parserRtdnf.i18nRt	getLoggerR6tCommandR(((s</usr/lib/python2.7/site-packages/dnf/cli/commands/install.pyt<module>s

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