+
    ˜qgj4  ã                   óà   a € R t0 t R t^ RIt^ RIt^ RIt^ RIHt ^ RIHt ^ RI	H
t
 ^ RIHt ^ RIHt ^ RIHt RR	R
. ROR]RR./t] ^ k ]P$                  ! ]4      tR R ltR tR tR R ltR# )z<Yum Add Repo: Add yum repository configuration to the systemN)ÚConfigParser)Úutil)ÚCloud)ÚConfig)Ú
MetaSchema)ÚPER_INSTANCEÚidÚcc_yum_add_repoÚdistrosÚ	frequencyÚactivate_by_schema_keysÚ	yum_reposc                ó0   € V ^8„  d   QhR\         R\         /# )é   Úrepo_idÚreturn)Ústr)Úformats   "ÚB/usr/lib/python3/dist-packages/cloudinit/config/cc_yum_add_repo.pyÚ__annotate__r   0   s   € ÷ 
%ñ 
%œcð 
%¤cñ 
%ó    c                ó&   € V P                  RR4      # )aN  Canonicalize repo id.

The sole name convention for repo ids is to not contain namespaces,
and typically the separator used is `-`. More info:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-setting_repository_options

:param repo_id: Repo id to convert.
:return: Canonical repo id.
Ú Ú-)Úreplace)r   s   &r   Ú_canonicalize_idr   0   s   € ð �?‰?˜3 Ó$Ð$r   c                 ó2  € \        V \        4      '       d   \        \        V 4      4      # \        V \        \
        34      '       d+   R P                  V  Uu. uF  p\        V4      NK  	  up4      # \        V \        4      '       g   \        V 4      # V # u upi )Ú
)Ú
isinstanceÚboolr   ÚintÚlistÚtupleÚjoinÚ_format_repo_value)ÚvalÚvs   & r   r$   r$   =   st   € Ü�#œ×Òä”3�s“8‹}ÐÜ�#œœe�}×%Ò%ð �y‰y¹Ó=¹°AÔ,¨QÖ/¹Ñ=Ó>Ð>Ü�cœ3×ÒÜ�3‹xˆØ€Jùò >s   ÁBc                 ó¨  € \        4       pVP                  V 4       VP                  4        F   w  r4VP                  W\	        V4      4       K"  	  \
        P                  ! 4       pVP                  V4       VP                  ^ 4       VP                  4       pVP                  ^ R\        P                  ! 4       ,          4       RP                  V4      # )é    z# Created by cloud-init on %s
Ú )r   Úadd_sectionÚitemsÚsetr$   ÚioÚStringIOÚwriteÚseekÚ	readlinesÚinsertr   Útime_rfc2822r#   )r   Úrepo_configÚto_beÚkr&   Úto_be_streamÚliness   &&     r   Ú_format_repository_configr9   L   s¢   € Ü‹N€EØ	×Ñ�gÔà×!Ñ!Ö#‰ˆð 	�	‰	�'Ô0°Ó3Ö4ñ $ô —;’;“=€LØ	‡K�K�ÔØ×Ñ�aÔØ×"Ñ"Ó$€EØ	‡L�L�Ð5¼×9JÒ9JÓ9LÕMÔNØ�7‰7�5‹>Ðr   c          
      óL   € V ^8„  d   QhR\         R\        R\        R\        RR/# )r   ÚnameÚcfgÚcloudÚargsr   N)r   r   r   r!   )r   s   "r   r   r   \   s/   € ÷ <)ñ <)”ð <)œ6ð <)¬%ð <)´tð <)Àñ <)r   c                 ó  € VP                  R 4      pV'       g   \        P                  RV 4       R# \        P                  ! VRR4      p/ p/ pVP                  4        EFZ  w  r‰\        V4      p
\        P                  P                  VRV
,          4      p\        P                  P                  V4      '       d   \        P                  RVV4       Kv  W¦9   d   \        P                  RVV4       K•  V	'       g   / p	/ pV	P                  4        FA  w  rÞVP                  4       P                  4       P                  RR	4      pV'       g   K=  WìV&   KC  	  Tp	^ p. ROpV F  pVV	9  g   K  V^,          pK  	  V\        V4      8X  d*   \        P!                  R
VRP                  V4      4       EKR  W—V
&   W¶V
&   EK]  	  VP                  4        F8  w  pp\#        VVP                  V4      4      p\        P$                  ! VV4       K:  	  R# )r   z<Skipping module named %s, no 'yum_repos' configuration foundNÚyum_repo_dirz/etc/yum.repos.d/z%s.repoz)Skipping repo %s, file %s already exists!z*Skipping repo %s, file %s already pending!r   Ú_z_Repository %s should contain at least one of the following configuration entries: %s, skipping!z, )ÚbaseurlÚmetalinkÚ
mirrorlist)ÚgetÚLOGÚdebugr   Úget_cfg_option_strr+   r   ÚosÚpathr#   ÚexistsÚinfoÚlowerÚstripr   ÚlenÚwarningr9   Ú
write_file)r;   r<   r=   r>   ÚreposÚrepo_base_pathÚrepo_locationsÚrepo_configsr   r4   Úcanon_repo_idÚrepo_fn_pthÚn_repo_configr6   r&   Úmissing_requiredÚ
req_fieldsÚ	req_fieldÚ	c_repo_idrJ   Ú	repo_blobs   &&&&                 r   Úhandler^   \   sÔ  € Ø�G‰G�KÓ €EßÜ�	‰	ØJØô	
ñ 	Ü×,Ò,Øˆ^Ð0ó€Nð €NØ€LØ %§¡§ÑˆÜ(¨Ó1ˆÜ—g‘g—l‘l >°9ÀÕ3NÓOˆÜ�7‰7�>‰>˜+×&Ò&Ü�H‰HØ;ØØôñ
 ØÔ,Ü�H‰HØ<ØØôñ
 ßØˆKàˆØ×%Ñ%Ö'‰DˆAØ—‘“	—‘Ó!×)Ñ)¨#¨sÓ3ˆAß‰qØ#$˜aÓ ñ (ð $ˆØÐÚ:ˆ
Û#ˆIØ Ö+Ø  AÕ%Ò ñ $ð œs :›Ô.Ü�K‰KðBàØ—	‘	˜*Ó%÷	ð +6˜Ñ'Ø,7˜=Ô)ñS !.ðV *×/Ñ/Ö1‰ˆ	�4Ü-Ø�|×'Ñ'¨	Ó2ó
ˆ	ô 	�Š˜˜iÖ(ó	 2r   c                ó@   € V ^8„  d   Qh/ ^ \         9   d
   \        ;R&   # )r   Úmeta)Ú__conditional_annotations__r   )r   s   "r   r   r      s   € × BÑ B÷ò „jñ ò Cr   )Ú	almalinuxÚamazonÚ
azurelinuxÚcentosÚ
cloudlinuxÚ	eurolinuxÚfedoraÚmarinerÚ	openeulerÚOpenCloudOSÚopenmandrivaÚphotonÚrhelÚrockyÚ	TencentOSÚ	virtuozzo)ra   Ú__doc__r-   ÚloggingrI   Úconfigparserr   Ú	cloudinitr   Úcloudinit.cloudr   Úcloudinit.configr   Úcloudinit.config.schemar   Úcloudinit.settingsr   r`   Ú	getLoggerÚ__name__rF   r   r$   r9   r^   r   )ra   s   @r   Ú<module>r|      sw   øðö Cã 	Û Û 	Ý %å Ý !Ý #Ý .Ý +ð 	Ð
Øò ð$ �Ø ˜}ð+€ó ð2 ×Ò˜Ó!€õ
%ò
ò÷ <)r   