⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3
/
dist-packages
/
apt
/
__pycache__
/
View File Name :
cdrom.cpython-312.pyc
I3f N d Z ddlZddlZddlmZ G d dej Zy)z"Classes related to cdrom handling. N) CdromProgressc e Zd ZdZ ddedz dedz deddfdZddedz defdZddedz 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. Nprogress mountpointnomountreturnc > t j j | |t | _ n|| _ | t j j d| |r!t j j dd y t j j dd y )NzAcquire::cdrom::mountzAPT::CDROM::NoMounttruefalse)apt_pkgr __init__r _progressconfigset)selfr r r s +/usr/lib/python3/dist-packages/apt/cdrom.pyr zCdrom.__init__/ st t$*_DN%DN!NN6 CNN4f=NN4g> 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" }} x'A4>>BBr c ^ t j j | |xs | j S )zIdentify the cdrom.)r r identr r s r r zCdrom.identG s" }}""4)CT^^DDr c | j }|yt j t j j d dz }|j t j j d |D ]M }t | 5 }|D ]1 }|j j d r#||v s( ddd y ddd O y# 1 sw Y ZxY w)z:Check if the cdrom is already in the current sources.list.NFzDir::Etc::sourceparts*zDir::Etc::sourcelist#T) r globr r find_dirappend find_fileopenlstrip startswith)r cd_idsrcfnamefobjlines r in_sources_listzCdrom.in_sources_listK s =ii//0GH3NO 7>>++,BCDEe D;;=33C8Ud]# s %C -C 2C =C C )NNT)N)__name__ __module____qualname____doc__r strboolr r r propertyr) r r r r s $ *.!% ?$&? $J? ? ?(CMD0 CD CEmd2 Ec E r r )r- r r apt.progress.baser r r1 r r
r3 s# , ) +=GMM =r