§
    •¦òcþ  ã                   ó‚   — d Z ddlmZmZ ddlZddlmZ ddlmZ ddl	m
Z
 ddlmZ ddlmZ d	„ Zd
„ Zd„ Zd„ Zd„ Zd„ ZdS )z*Commands related to the downloads section.é    )Úabsolute_importÚprint_functionN)Úload_project)Úproject_ops)Úconsole_utils)Úprepare_without_interaction)ÚPROVIDE_MODE_CHECKc           	      ó:  — t          | ¦  «        }|s|r.t          |o|¦  «        st          dt          j        ¬¦  «         dS t          j        |||||||¬¦  «        }|r(t          |j        ¦  «         t          d|z  ¦  «         dS t          j	        |¦  «         dS )z%Add an item to the downloads section.zHError: mutually dependant parameters: --hash-algorithm and --hash-value.)Úfileé   )Úenv_spec_nameÚenv_varÚurlÚfilenameÚhash_algorithmÚ
hash_valuezAdded %s to the project file.r   )
r   ÚboolÚprintÚsysÚstderrr   Úadd_downloadÚstatus_descriptionr   Úprint_status_errors)	Úproject_dirr   Úfilename_variableÚdownload_urlr   r   r   ÚprojectÚstatuss	            úOlib/python3.11/site-packages/anaconda_project/internal/cli/download_commands.pyr   r      sÄ   € å˜;Ñ'Ô'€GØð ˜*ð ­d°>Ð3PÀjÑ.QÔ.Qð ÝÐXÕ_bÔ_iÐjÑjÔjÐjØˆqÝÔ% gØ4AØ.?Ø*6Ø/7Ø5CØ1;ð=ñ =ô =€Fð ð ÝˆfÔ'Ñ(Ô(Ð(ÝÐ-°Ñ<Ñ=Ô=Ð=ØˆqåÔ)¨&Ñ1Ô1Ð1Øˆqó    c                 óv  — t          | ¦  «        }|                     ¦   «         5  t          ||t          ¬¦  «        }ddd¦  «         n# 1 swxY w Y   t	          j        ||||¬¦  «        }|r8t          |j        ¦  «         t          d                     |¦  «        ¦  «         dS t          j
        |¦  «         dS )z@Remove a download requirement from project and from file system.)r   ÚmodeN)r   r   Úprepare_resultz!Removed {} from the project file.r   r   )r   Únull_frontendr   r	   r   Úremove_downloadr   r   Úformatr   r   )r   r   r   r   Úresultr   s         r   r%   r%   *   s  € å˜;Ñ'Ô'€Gð 
×	Ò	Ñ	 Ô	 ð lð lÝ,¨WÀMÕXjÐkÑkÔkˆðlð lð lñ lô lð lð lð lð lð lð løøøð lð lð lð låÔ(¨Ø7DØ1BØ8>ð@ñ @ô @€Fð ð ÝˆfÔ'Ñ(Ô(Ð(ÝÐ1×8Ò8Ð9JÑKÔKÑLÔLÐLØˆqåÔ)¨&Ñ1Ô1Ð1Øˆqs   ¤AÁAÁAc                 ó0  — t          | ¦  «        }t          j        |¦  «        rdS |                     |¦  «        rLt	          d                     | ¦  «        ¦  «         t          j        |                     |¦  «        d¬¦  «         nt	          d¦  «         dS )z&List the downloads present in project.r   zDownloads for project: {}
Útitle)Ú	name_attrzNo downloads found in project.r   )r   r   Úprint_project_problemsÚ	downloadsr   r&   Úprint_names_and_descriptionsÚdownload_requirements)r   r   r   s      r   Úlist_downloadsr/   >   s—   € å˜;Ñ'Ô'€GÝÔ+¨GÑ4Ô4ð Øˆqà×Ò˜Ñ'Ô'ð 0ÝÐ+×2Ò2°;Ñ?Ô?Ñ@Ô@Ð@ÝÔ2°7×3PÒ3PÐQ^Ñ3_Ô3_ÐkrÐsÑsÔsÐsÐsåÐ.Ñ/Ô/Ð/Øˆ1r    c           	      ór   — t          | j        | j        | j        | j        | j        | j        | j        ¦  «        S )z7Start the download command and return exit status code.)r   Ú	directoryÚenv_specr   r   r   r   r   ©Úargss    r   Úmain_addr5   L   s6   € å˜œ¨¬°tÔ7MÈtÔO`ÐbfÔboØÔ+¨T¬_ñ>ô >ð >r    c                 óB   — t          | j        | j        | j        ¦  «        S )z>Start the remove download command and return exit status code.)r%   r1   r2   r   r3   s    r   Úmain_remover7   R   s   € å˜4œ>¨4¬=¸$Ô:PÑQÔQÐQr    c                 ó6   — t          | j        | j        ¦  «        S )z<Start the list download command and return exit status code.)r/   r1   r2   r3   s    r   Ú	main_listr9   W   s   € å˜$œ.¨$¬-Ñ8Ô8Ð8r    )Ú__doc__Ú
__future__r   r   r   Ú*anaconda_project.internal.cli.project_loadr   Úanaconda_projectr   Úanaconda_project.internal.clir   Úanaconda_project.preparer   Úanaconda_project.provider	   r   r%   r/   r5   r7   r9   © r    r   ú<module>rB      sï   ðð 1Ð 0Ø 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6Ð 6à 
€
€
€
à CÐ CÐ CÐ CÐ CÐ CØ (Ð (Ð (Ð (Ð (Ð (Ø 7Ð 7Ð 7Ð 7Ð 7Ð 7Ø @Ð @Ð @Ð @Ð @Ð @Ø 7Ð 7Ð 7Ð 7Ð 7Ð 7ðð ð ð,ð ð ð(ð ð ð>ð >ð >ðRð Rð Rð
9ð 9ð 9ð 9ð 9r    