| Server IP : 139.59.63.204 / Your IP : 216.73.217.62 Web Server : Apache/2.4.58 (Ubuntu) System : Linux ubuntu-s-1vcpu-1gb-blr1-01 6.8.0-110-generic #110-Ubuntu SMP PREEMPT_DYNAMIC Thu Mar 19 15:09:20 UTC 2026 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /usr/lib/python3/dist-packages/apt/__pycache__/ |
Upload File : |
�
��h
� �N � d Z ddlZddlZddlmZ G d� dej
� Zy)z"Classes related to cdrom handling.� N)�
CdromProgressc � � e Zd ZdZ ddedz dedz deddfd�Zddedz defd�Zddedz defd �Z e
defd
�� Zy)
�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.
N�progress�
mountpoint�nomount�returnc �> � t j j | � |�t � | _ n|| _ |� t j
j
d|� |r!t j
j
dd� y t j
j
dd� y )NzAcquire::cdrom::mountzAPT::CDROM::NoMount�true�false)�apt_pkgr �__init__r � _progress�config�set)�selfr r r s �+/usr/lib/python3/dist-packages/apt/cdrom.pyr zCdrom.__init__/ st � � �
�
���t�$���*�_�D�N�%�D�N��!��N�N���6�
�C���N�N���4�f�=��N�N���4�g�>� c �^ � t j j | |xs | j � S )zAdd cdrom to the sources.list.)r
r �addr �r r s r r z Cdrom.addC s"