Ë
    x[hb  ã            
       óº   — U d 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  ej                  e«      ZdZd	Zd
ddgedgdœZe	ed<   dededededdf
d„Zd„ Zy)z)Apt Pipelining: configure apt pipelining.é    N)Úutil)ÚCloud)ÚConfig)Ú
MetaSchema)ÚPER_INSTANCEz+/etc/apt/apt.conf.d/90cloud-init-pipeliningzQ//Written by cloud-init per 'apt_pipelining'
Acquire::http::Pipeline-Depth "%s";
Úcc_apt_pipeliningÚubuntuÚdebianÚapt_pipelining)ÚidÚdistrosÚ	frequencyÚactivate_by_schema_keysÚmetaÚnameÚcfgÚcloudÚargsÚreturnc                 ó`  — |j                  dd«      }t        |«      j                  «       j                  «       }|dk(  rt	        dt
        t        «       y |dv ry |t        d«      D �cg c]  }t        |«      ‘Œ c}v rt	        |t
        t        «       y t
        j                  d|«       y c c}w )Nr   ÚosÚfalseÚ0)ÚnoneÚ	unchangedr   é   z%Invalid option for apt_pipelining: %s)	ÚgetÚstrÚlowerÚstripÚwrite_apt_snippetÚLOGÚDEFAULT_FILEÚrangeÚwarning)r   r   r   r   Úapt_pipe_valueÚapt_pipe_value_sÚbs          úD/usr/lib/python3/dist-packages/cloudinit/config/cc_apt_pipelining.pyÚhandler*   %   sŒ   € Ø—W‘WÐ-¨tÓ4€NÜ˜>Ó*×0Ñ0Ó2×8Ñ8Ó:Ðà˜7Ò"Ü˜#œs¤LÕ1Ø	Ð8Ñ	8ØØ	¬e°A«hÖ7¨œc !�fÒ7Ñ	7ÜÐ*¬C´Õ>ä�‰Ð;¸^ÕLùò 8s   Á(B+c                 óh   — t         | z  }t        j                  ||«       |j                  d|| «       y)z0Writes f_name with apt pipeline depth 'setting'.z+Wrote %s with apt pipeline depth setting %sN)ÚAPT_PIPE_TPLr   Ú
write_fileÚdebug)ÚsettingÚlogÚf_nameÚfile_contentss       r)   r!   r!   3   s-   € ô ! GÑ,€MÜ‡O�O�F˜MÔ*Ø‡I�IÐ;¸VÀWÕMó    )Ú__doc__ÚloggingÚ	cloudinitr   Úcloudinit.cloudr   Úcloudinit.configr   Úcloudinit.config.schemar   Úcloudinit.settingsr   Ú	getLoggerÚ__name__r"   r#   r,   r   Ú__annotations__r   Úlistr*   r!   © r3   r)   ú<module>r@      s•   ðò 0ã å Ý !Ý #Ý .Ý +à€g×Ñ˜Ó!€à<€ð,ð ð Ø˜(Ð#ØØ 0Ð1ñ	€€jó ðM�ð M˜6ð M¨%ð M°tð MÀó MóNr3   