403Webshell
Server IP : 35.236.43.222  /  Your IP : 216.73.216.143
Web Server : Apache
System : Linux order-form-vm-001 5.10.0-37-cloud-amd64 #1 SMP Debian 5.10.247-1 (2025-12-11) x86_64
User : deploy ( 1002)
PHP Version : 8.1.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/apt/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/apt/__pycache__/cdrom.cpython-39.pyc
a

�?iu
�@sNdZddlmZddlmZddlZddlZddlmZGdd�dej	�Z	dS)z"Classes related to cdrom handling.�)�print_function)�OptionalN)�
CdromProgressc@s:eZdZdZddd�Zd
dd�Zddd	�Zed
d��ZdS)�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.
    NTcCs`tj�|�|durt�|_n||_|dur:tj�d|�|rNtj�dd�ntj�dd�dS)NzAcquire::cdrom::mountzAPT::CDROM::NoMount�trueZfalse)�apt_pkgr�__init__r�	_progress�config�set)�self�progressZ
mountpointZnomount�r�+/usr/lib/python3/dist-packages/apt/cdrom.pyr1s
zCdrom.__init__cCstj�||p|j�S)zAdd cdrom to the sources.list.)rr�addr	�rr
rrrrAsz	Cdrom.addcCstj�||p|j�S)zIdentify the cdrom.)rr�identr	rrrrrFszCdrom.identc	Cs�|��}|durdSt�tj�d�d�}|�tj�d��|D]`}t|��D}|D].}|���	d�sR||vrRWd�dSqRWd�q@1s�0Yq@dS)z:Check if the cdrom is already in the current sources.list.NFzDir::Etc::sourceparts�*zDir::Etc::sourcelist�#T)
r�globrr
Zfind_dir�appendZ	find_file�open�lstrip�
startswith)rZcd_id�src�fnameZfobj�linerrr�in_sources_listKs
6zCdrom.in_sources_list)NNT)N)N)	�__name__�
__module__�__qualname__�__doc__rrr�propertyrrrrrr s


r)
r!Z
__future__r�typingrrrZapt.progress.baserrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit