ROOTPLOIT
Server: Apache
System: Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux
User: ws67150586 (67150586)
PHP: 8.3.36
Disabled: NONE
Upload Files
File: //kunden/kunden/kunden/lib/python3/dist-packages/apt/__pycache__/cdrom.cpython-313.pyc
�

8.�g
��N�SrSSKrSSKrSSKJr "SS\R
5rg)z"Classes related to cdrom handling.�N)�
CdromProgressc	��\rSrSrSrS
S\S-S\S-S\SS4SjjrSS\S-S\4S	jjr	SS\S-S\4S
jjr
\S\4Sj5rSr
g)�Cdrom�aSupport 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.
N�progress�
mountpoint�nomount�returnc�J�[RRU5 Uc[5UlOXlUb [R
R
SU5 U(a![R
R
SS5 g[R
R
SS5 g)NzAcquire::cdrom::mountzAPT::CDROM::NoMount�true�false)�apt_pkgr�__init__r�	_progress�config�set)�selfrrr	s    �+/usr/lib/python3/dist-packages/apt/cdrom.pyr�Cdrom.__init__/sr��	�
�
���t�$���*�_�D�N�%�N��!��N�N���6�
�C���N�N���4�f�=��N�N���4�g�>�c�f�[RRX=(d UR5$)zAdd cdrom to the sources.list.)rr�addr�rrs  rr�	Cdrom.addCs ���}�}� � ��'A�4�>�>�B�Brc�f�[RRX=(d UR5$)zIdentify the cdrom.)rr�identrrs  rr�Cdrom.identGs ���}�}�"�"�4�)C�T�^�^�D�Drc���UR5nUcg[R"[RR	S5S-5nUR[RR
S55 UHVn[U5nUH9nUR5RS5(aM)X;dM0 SSS5  g SSS5 MX g!,(df   Mj=f)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�lines      r�in_sources_list�Cdrom.in_sources_listKs����
�
����=���i�i����/�/�0G�H�3�N�O���
�
�7�>�>�+�+�,B�C�D��E��e��� �D��;�;�=�3�3�C�8�8�U�]�#��� ����
�	��s�	(C�5C�<C�C�
C%	)r)NNT)N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r�str�boolrrr�propertyr-�__static_attributes__�rrrrs����$*.�!%��	?��$�&�?��$�J�?��	?�

�?�(C�M�D�0�C�D�C�E�m�d�2�E�c�E������rr)r3r!r�apt.progress.baserrr8rr�<module>r:s#��,)���+�=�G�M�M�=r