§
    ­xkdu  ã                   ód   — d Z ddlmZ ddlmZ ddlZddlZddlmZ  G d„ dej	        ¦  «        Z	dS )z"Classes related to cdrom handling.é    )Úprint_function)ÚOptionalN)ÚCdromProgressc                   ó@   — e Zd ZdZdd„Zd	d„Zd	d„Zed„ ¦   «         ZdS )
ÚCdroma;  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.
    NTc                 óJ  — t           j                             | ¦  «         |€t          ¦   «         | _        n|| _        |� t           j                             d|¦  «         |r"t           j                             dd¦  «         d S t           j                             dd¦  «         d S )NzAcquire::cdrom::mountzAPT::CDROM::NoMountÚtrueÚfalse)Úapt_pkgr   Ú__init__r   Ú	_progressÚconfigÚset)ÚselfÚprogressÚ
mountpointÚnomounts       ú+/usr/lib/python3/dist-packages/apt/cdrom.pyr   zCdrom.__init__1   s—   € åŒ×Ò˜tÑ$Ô$Ð$ØÐÝ*™_œ_ˆDŒNˆNà%ˆDŒNàÐ!ÝŒN×ÒÐ6¸
ÑCÔCÐCàð 	?ÝŒN×ÒÐ4°fÑ=Ô=Ð=Ð=Ð=åŒN×ÒÐ4°gÑ>Ô>Ð>Ð>Ð>ó    c                 óP   — t           j                             | |p| j        ¦  «        S )zAdd cdrom to the sources.list.)r   r   Úaddr   ©r   r   s     r   r   z	Cdrom.addA   s#   € õ Œ}× Ò   xÐ'A°4´>ÑBÔBÐBr   c                 óP   — t           j                             | |p| j        ¦  «        S )zIdentify the cdrom.)r   r   Úidentr   r   s     r   r   zCdrom.identF   s#   € õ Œ}×"Ò" 4¨Ð)C°T´^ÑDÔDÐDr   c                 óÚ  — |                       ¦   «         }|€dS t          j        t          j                             d¦  «        dz   ¦  «        }|                     t          j                             d¦  «        ¦  «         |D ]i}t          |¦  «        5 }|D ]<}|                     ¦   «          	                    d¦  «        s||v r ddd¦  «          dS Œ=	 ddd¦  «         n# 1 swxY w Y   ŒjdS )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_listzCdrom.in_sources_listK   sC  € ð —
’
‘”ˆØˆ=à�5åŒi�œ×/Ò/Ð0GÑHÔHÈ3ÑNÑOÔOˆØ�
Š
•7”>×+Ò+Ð,BÑCÔCÑDÔDÐDàð 	$ð 	$ˆEÝ�e‘”ð $ Ø ð $ð $�DØŸ;š;™=œ=×3Ò3°CÑ8Ô8ð $¸UÀd¸]¸]Ø#ð$ð $ð $ñ $ô $ð $ð $ð $ð $øð$ð$ð $ð $ñ $ô $ð $ð $ð $ð $ð $ð $øøøð $ð $ð $ð $øð ˆus   Â1CÃCÃC#	Ã&C#	)NNT)N)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r   r   Úpropertyr*   © r   r   r   r       s}   € € € € € ðð ð ?ð ?ð ?ð ?ð Cð Cð Cð Cð
Eð Eð Eð Eð
 ðð ñ „Xðð ð r   r   )
r.   Ú
__future__r   Útypingr   r   r   Úapt.progress.baser   r   r0   r   r   ú<module>r4      s‹   ðð, )Ð (Ø %Ð %Ð %Ð %Ð %Ð %à Ð Ð Ð Ð Ð Ø €€€à €€€Ø +Ð +Ð +Ð +Ð +Ð +ð<ð <ð <ð <ð <ˆGŒMñ <ô <ð <ð <ð <r   