HEX
Server: Apache
System: Linux pdx1-shared-a1-38 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: mmickelson (3396398)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //lib/python2.7/dist-packages/apt/cdrom.pyc
�
&��cc@s�dZddlmZyddlmZWnek
r=nXddlZddlZddlm	Z	dej
fd��YZ
dS(s"Classes related to cdrom handling.i����(tprint_function(tOptionalN(t
CdromProgresstCdromcBsGeZdZdded�Zdd�Zdd�Zed��Z	RS(s;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.
    cCs�tjj|�|dkr+t�|_n	||_|dk	rVtjjd|�n|rrtjjdd�ntjjdd�dS(NsAcquire::cdrom::mountsAPT::CDROM::NoMountttruetfalse(tapt_pkgRt__init__tNoneRt	_progresstconfigtset(tselftprogresst
mountpointtnomount((s-/usr/lib/python2.7/dist-packages/apt/cdrom.pyR5s	cCstjj||p|j�S(sAdd cdrom to the sources.list.(RRtaddR	(RR
((s-/usr/lib/python2.7/dist-packages/apt/cdrom.pyREscCstjj||p|j�S(sIdentify the cdrom.(RRtidentR	(RR
((s-/usr/lib/python2.7/dist-packages/apt/cdrom.pyRJscCs�|j�}|dkrtStjtjjd�d�}|jtjjd��xZ|D]R}t	|��>}x4|D],}|j
�jd�rw||krwtSqwWWdQXq[WtS(s:Check if the cdrom is already in the current sources.list.sDir::Etc::sourcepartst*sDir::Etc::sourcelistt#N(
RRtFalsetglobRR
tfind_dirtappendt	find_filetopentlstript
startswithtTrue(Rtcd_idtsrctfnametfobjtline((s-/usr/lib/python2.7/dist-packages/apt/cdrom.pytin_sources_listOs

"N(
t__name__t
__module__t__doc__RRRRRtpropertyR"(((s-/usr/lib/python2.7/dist-packages/apt/cdrom.pyR$s
(R%t
__future__RttypingRtImportErrorRRtapt.progress.baseRR(((s-/usr/lib/python2.7/dist-packages/apt/cdrom.pyt<module>s