ó
    8.õg  ã                   óN   • S r SSKrSSKrSSKJr   " S S\R
                  5      rg)z"Classes related to cdrom handling.é    N)ÚCdromProgressc            	       ó˜   • \ rS rSrSr   SS\S-  S\S-  S\SS4S jjrSS\S-  S\4S	 jjr	SS\S-  S\4S
 jjr
\S\4S j5       rSrg)ÚCdromé   a  Support for apt-cdrom like features.

This class has several optional parameters for initialisation, which may
be used to influence the behaviour of the object:

The optional parameter `progress` is a CdromProgress() subclass, which will
ask for the correct cdrom, etc. If not specified or None, a CdromProgress()
object will be used.

The optional parameter `mountpoint` may be used to specify an alternative
mountpoint.

If the optional parameter `nomount` is True, the cdroms will not be
mounted. This is the default behaviour.
NÚprogressÚ
mountpointÚnomountÚreturnc                 óJ  • [         R                  R                  U 5        Uc  [        5       U l        OXl        Ub   [         R
                  R                  SU5        U(       a!  [         R
                  R                  SS5        g [         R
                  R                  SS5        g )NzAcquire::cdrom::mountzAPT::CDROM::NoMountÚtrueÚfalse)Úapt_pkgr   Ú__init__r   Ú	_progressÚconfigÚset)Úselfr   r   r	   s       Ú+/usr/lib/python3/dist-packages/apt/cdrom.pyr   ÚCdrom.__init__/   sr   € ô 	�‰×Ñ˜tÔ$ØÑÜ*›_ˆD�Nà%ŒNàÑ!Ü�N‰N×ÑÐ6¸
ÔCæÜ�N‰N×ÑÐ4°fÕ=ä�N‰N×ÑÐ4°gÕ>ó    c                 óf   • [         R                  R                  X=(       d    U R                  5      $ )zAdd cdrom to the sources.list.)r   r   Úaddr   ©r   r   s     r   r   Ú	Cdrom.addC   s    € ä�}‰}× Ñ  ×'A°4·>±>ÓBÐBr   c                 óf   • [         R                  R                  X=(       d    U R                  5      $ )zIdentify the cdrom.)r   r   Úidentr   r   s     r   r   ÚCdrom.identG   s    € ä�}‰}×"Ñ" 4×)C°T·^±^ÓDÐDr   c                 óÐ  • U R                  5       nUc  g[        R                  " [        R                  R	                  S5      S-   5      nUR                  [        R                  R                  S5      5        U HV  n[        U5       nU H9  nUR                  5       R                  S5      (       a  M)  X;   d  M0    SSS5          g   SSS5        MX     g! , (       d  f       Mj  = f)z:Check if the cdrom is already in the current sources.list.NFzDir::Etc::sourcepartsÚ*zDir::Etc::sourcelistÚ#T)
r   Úglobr   r   Úfind_dirÚappendÚ	find_fileÚopenÚlstripÚ
startswith)r   Úcd_idÚsrcÚfnameÚfobjÚlines         r   Úin_sources_listÚCdrom.in_sources_listK   sª   € ð —
‘
“ˆØ‰=àä�iŠiœŸ™×/Ñ/Ð0GÓHÈ3ÑNÓOˆØ�
‰
”7—>‘>×+Ñ+Ð,BÓCÔDãˆEÜ�e” Û �DØŸ;™;›=×3Ñ3°C×8Ó8¸U½]Ø#÷ ‘Ù ÷ ‘ñ ð
 ÷	 –ús   Â	(CÂ5CÂ<CÃCÃ
C%	)r   )NNT)N)Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   ÚstrÚboolr   r   r   Úpropertyr-   Ú__static_attributes__© r   r   r   r      s—   † ñð$ *.Ø!%Øñ	?à $Ñ&ð?ð ˜$‘Jð?ð ð	?ð
 
õ?ñ(C˜M¨DÑ0ð C¸Dõ CñE˜m¨dÑ2ð E¸cõ Eð ð ó ó ór   r   )r3   r!   r   Úapt.progress.baser   r   r8   r   r   Ú<module>r:      s#   ðñ, )Û ã å +ô=ˆG�M‰Mõ =r   