+
    S^i                     P    R t ^ RIt^ RIt^ RIHt  ! R R]P
                  4      tR# )z"Classes related to cdrom handling.N)CdromProgressc                      a  ] tR t^t o RtRV 3R lR lltRV 3R lR lltRV 3R lR llt]V 3R	 lR
 l4       t	Rt
V tR# )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.
Nc                L   < V ^8  d   QhRS[ R,          RS[R,          RS[RR/# )   progressN
mountpointnomountreturn)r   strbool)format__classdict__s   "+/usr/lib/python3/dist-packages/apt/cdrom.py__annotate__Cdrom.__annotate__/   s<     ? ?$&? $J? 	?
 
?    c                T   \         P                  P                  V 4       Vf   \        4       V n        MWn        Ve!   \         P
                  P                  RV4       V'       d#   \         P
                  P                  RR4       R # \         P
                  P                  RR4       R # )NzAcquire::cdrom::mountzAPT::CDROM::NoMounttruefalse)apt_pkgr   __init__r   	_progressconfigset)selfr   r   r	   s   &&&&r   r   Cdrom.__init__/   sr     	t$*_DN%N!NN6
CNN4f=NN4g>r   c                4   < V ^8  d   QhRS[ R,          RS[/# r   r   Nr
   )r   r   )r   r   s   "r   r   r   C   s$     C CMD0 CD Cr   c                h    \         P                  P                  Y;'       g    V P                  4      # )zAdd cdrom to the sources.list.)r   r   addr   r   r   s   &&r   r    	Cdrom.addC   s#    }}  'A'A4>>BBr   c                4   < V ^8  d   QhRS[ R,          RS[/# r   )r   r   )r   r   s   "r   r   r   G   s$     E Emd2 Ec Er   c                h    \         P                  P                  Y;'       g    V P                  4      # )zIdentify the cdrom.)r   r   identr   r!   s   &&r   r%   Cdrom.identG   s#    }}""4)C)CT^^DDr   c                    < V ^8  d   QhRS[ /# )r   r
   )r   )r   r   s   "r   r   r   L   s       r   c                   V P                  4       pVf   R# \        P                  ! \        P                  P	                  R4      R,           4      pVP                  \        P                  P                  R4      4       V Fa  p\        V4      ;_uu_ 4       pV F<  pVP                  4       P                  R4      '       d   K*  W9   g   K2   RRR4        R# 	  RRR4       Kc  	  R#   + '       g   i     Kx  ; i)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     

=ii//0GH3NO

7>>++,BCDEe D;;=33C88U]#    
 	 s   (C(C(C(C((C9)r   )NNT)N)__name__
__module____qualname____firstlineno____doc__r   r    r%   propertyr7   __static_attributes____classdictcell__)r   s   @r   r   r      s@      ? ?(C CE E  r   r   )r=   r+   r   apt.progress.baser   r    r   r   <module>rC      s#   , )   +=GMM =r   