403Webshell
Server IP : 178.105.222.151  /  Your IP : 216.73.216.38
Web Server : nginx/1.28.3
System : Linux MNK 7.0.0-15-generic #15-Ubuntu SMP PREEMPT_DYNAMIC Wed Apr 22 16:06:43 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 8.5.4
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3/dist-packages/aptsources/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3/dist-packages/aptsources/__pycache__/distro.cpython-314.pyc
+
S^�i,U����^RIt^RIt^RIt^RIt^RIt^RIHt^RIHt!RR]	4t
!RR4t!RR	]4t!R
R]4t
!RR
]
4tRtRRRR./3RltR#)�N)�ElementTree)�gettextc��]tRt^$tRtR#)�NoDistroTemplateException�N)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r��3/usr/lib/python3/dist-packages/aptsources/distro.pyrr$s��r
rc�ra�]tRt^(to./3RltRtRRltRtRtRRlt	Rt
R	tR
tRt
RtR
tVtR#)�Distributionc��VP4VnW nW0nW@nWPnW`nRVnRVnR#)z0Container for distribution specific informations�debzdeb-srcN)	�lower�id�codename�description�release�is_like�like_codenames�binary_type�source_type)�selfrrrrrrs&&&&&&&r�__init__�Distribution.__init__)s<���(�(�*��� �
�&������,�� ���$��r
c�
�WnRVn.Vn.Vn.Vn.Vn.Vn.Vn.Vn.Vn	RVn
.VnRVnRVn
RVn.VnVPP P"FIpVP%VP&4'gK&VP(VP*8XgKCW nM	VPf(\-RVP*:RVP.:24h.p.p.p.pVPP14EF�pVP2'Eg�VP%VP44'EdqVP6'Ed^VP6P8'EdAVP%VP6P&4'EdVP:P=R4'dKVP>'g9VP
PAV4VPCVPD4EM�VP:P=R4'd0VP>'dVP
PAV4EMYVPFVPH8XdeVP>'gSVPPAV4VPCVPD4VPAVP:4M�VPFVPH8Xd/VP>'dVPPAV4M�VPFVPJ8Xd/VP>'gVPPAV4MHVPFVPJ8Xd.VP>'dVPPAV4VP2'dEK�VP6VPPL9gEK�VP>'g:VPFVPH8XdVPPAV4EK1VP>'g:VPFVPJ8XdVPPAV4EK|VPPAV4EK�	\OV4Vn\OV4VnVPCV4VPCV4\OV4Vn\OV4Vn	VPQ4R#)zN
Find the corresponding template, main and child sources
for the distribution
NF�z2Error: could not find a distribution template for �/�cdrom:))�sourceslist�source_template�
child_sources�main_sources�disabled_sources�
cdrom_sources�download_comps�
enabled_comps�cdrom_comps�
used_media�get_source_code�source_code_sources�default_server�main_server�nearest_server�used_servers�matcher�	templates�is_codename�name�distributionrrr�
exploded_list�invalid�dist�template�official�uri�
startswith�disabled�append�extend�comps�typerr�children�set�get_mirrors)rr#r;�mediarBr+r*�sources&&      r�get_sources�Distribution.get_sources9s���'��#��������� "������ ������������$���#%�� �!������ �������(�(�0�0�:�:�H�����
�
�.�.�8�3H�3H�D�G�G�3S�(0�$��
;����'�+��7�7�D�M�M�+��
��������
��&�&�4�4�6�F��N�N�N��$�$�V�[�[�1�1��O�O�O��O�O�,�,�,��$�$�V�_�_�%9�%9�:�:��:�:�(�(��2�2�6�?�?�?��&�&�-�-�f�5��&�&�v�|�|�4��Z�Z�*�*�8�4�4������&�&�-�-�f�5��[�[�D�$4�$4�4�V�_�_�_��%�%�,�,�V�4��L�L����.��L�L����,��[�[�D�$4�$4�4������)�)�0�0��8��[�[�D�$4�$4�4�V�_�_�_��,�,�3�3�F�;��[�[�D�$4�$4�4������)�)�0�0��8��>�>�>�f�o�o��9M�9M�9V�9V�&V�����6�;�;�$�:J�:J�+J��&�&�-�-�f�5�����V�[�[�D�<L�<L�-L��,�,�3�3�F�;��)�)�0�0��8�?7�@"�%�j����{�+������U�#����[�)� ��/����e�*������r
Nc��VPPVnVPF7pVP	R4'dKVP
P
V4K9	\VP4^8XdVPVn	M"VP^,PVn	/VnRp\PPV4'd�\VR7p\!VRR4fVP"VnVP%R4pVF]pVP&R,pVP&R	,p\*P,!RV4VPVP/4&K_	RVnRVn\P4!RR
R7p	V	P7R4p
V	P7R4pVR8Xd\V	4pW�^,VP/4pV'dW,VnW�P9d!VPV,VnW�nR#R# \(dTP&R,pEL%i;i \(dTP&R
,pEL6i;i)zB
Provide a set of mirrors where you can get the distribution from
r"z%/usr/share/xml/iso-codes/iso_3166.xml)�file�iterN�iso_3166_entry�common_namer6�alpha_2_code�alpha_3_code�iso_3166�LANG�en_UK)�default�_�.���)r$�base_urir0r,r>r2r@�lenr&r/r=�	countries�os�path�existsr�getattr�getiteratorrM�attrib�KeyErrorr�dgettextr�country�country_code�getenv�findr1)
r�mirror_template�medium�fname�et�it�elm�descr�code�locale�a�zres
&&           rrF�Distribution.get_mirrors�s��
 �/�/�8�8����o�o�F��$�$�X�.�.��!�!�(�(��0�&�
�t� � �!�Q�&�"&�"2�"2�D��"&�"3�"3�A�"6�":�":�D�����7��
�7�7�>�>�%� � ��%�(�B��r�6�4�(�0��.�.������)�*�B���/��J�J�}�5�E�6��:�:�n�5�D�07�/?�/?�
�E�/R����t�z�z�|�,����� ������6�7�3���K�K�����K�K������7��F��A��!�e�a�(�.�.�0���"1�"@�D���>�>�)��>�>�,�7�D�L� ,��*��+ �/��J�J�v�.�E�/�� �6��:�:�n�5�D�6�s$�"H9�6I�9I�I�J�?Jc�$�RpVPR4pVPR4pVR8wdVR8wdW\R4,VpW P9d$\R4VPV,,#RVP	R4,#)zgTry to get a human readable name for the main mirror of a country
Customize for different distributionsNz://z.archive.ubuntu.com�
Server for %s�%s�/ rX)rgrZr[rV�rstrip�r�serverrd�i�lis&&   r�_get_mirror_name�Distribution._get_mirror_name�s|�����K�K����
�[�[�.�
/����7�r�R�x���U��^�b�1�G��n�n�$��_�%����w�(?�?�?��&�-�-��-�-�-r
c��Rp.p\VP4^8gE\VP4^8Xd�V!VP^,VP4'dsVP\	R4VPR.4VP
'd8VPVP
VP
4VP
R.4V#\VP4^8Xd�V!VP^,VP4'g�VP\	R4VPR.4VP^,pVP
'dPV!W0P
4'g8VPVP
VP
4VP
R.4V'd$VPVP
V4VR.4V#\VP4^8�EdVP\	R4VPR.4VP
'd8VPVP
VP
4VP
R.4VP\	R4RR.4VPFbpVP
V4VR.pV!W0P
4'gV!W0P4'dKIWB9gKQVPV4Kd	V#)z+Return a list of used and suggested serversc�l�\P!VPR4VPR44#)z[Helper function that handles comaprision of mirror urls
that could contain trailing slashesrw)�re�match�striprx)�mir1�mir2s&&r�compare_mirrors�5Distribution.get_server_list.<locals>.compare_mirrors�s'���8�8�D�J�J�t�,�d�k�k�$�.?�@�@r
zMain serverTFzCustom serversN)rZr2r0r@rVr1r})rr��mirrorsrz�mirror_entrys&    r�get_server_list�Distribution.get_server_list�s���	A����t� � �!�A�%���!�!�"�a�'��� 1� 1�!� 4�d�6F�6F�G�G��N�N�A�m�,�d�.>�.>��E�F��"�"�"�����-�-�d�.A�.A�B��+�+����d��W��"�"�
#�q�
(�����a� �$�"2�"2�2
�2
�
�N�N�A�m�,�d�.>�.>��F�G��&�&�q�)�F��"�"�"�&�v�/B�/B�C�C��N�N� �1�1�$�2E�2E�F� �/�/�!�������� 5� 5�f� =�v�t�L�M�2��/��"�"�
#�a�
'�
�N�N�A�m�,�d�.>�.>��F�G��"�"�"�����-�-�d�.A�.A�B��+�+����
�N�N�A�.�/��t�<�=��+�+�� $� 5� 5�f� =�v�u�M��"�6�+>�+>�?�?�?��,�,�D�D��!�0��N�N�<�0�,��r
c�v�Vf
VPpVf
VPpVf\VP4pVf
VPpRpRp\VP4;'g\VP4FpVPpM	VPPWW4WVVR7pVP'dvWP8XddVPPVPVVVVVPVVPPPV4^,R7R#R#R#)z#
Add distribution specific sources
N)�parentrL)rLr��pos)r/r�listr*r�reversedr%r&rLr#�addr-r�index)	rrCr=r:rB�commentr�rL�
new_sources	&&&&&&   r�
add_source�Distribution.add_sources'���;��%�%�C��<��=�=�D��=���+�+�,�E��<��#�#�D������t�1�1�2�Q�Q�h�t�?P�?P�6Q�Q�F��;�;�D��R��%�%�)�)��t�G��*�
�
�
����D�,<�,<�$<���� � �� � ������_�_�!��$�$�)�)�/�/�
�;�a�?�
!�	
�%=�r
c�\�\V.4pVPFupVPPFXpVPV8XgKVP
'gK*VP
V9gK=VP
VP
4KZ	Kw	VFpVPV4K	R#)z�
Enable a component in all main, child and source code sources
(excluding cdrom based sources)

comp:         the component that should be enabled
N)r�r&r;�
componentsr6�parent_componentr@�_enable_component)r�comprBrH�cs&&   r�enable_component�Distribution.enable_component?s����d�V����'�'�F��_�_�/�/���6�6�T�>�a�&8�&8�&8��)�)��6����Q�%7�%7�8�0�(�
�A��"�"�1�%�r
c�Fa�V3Rlp.pVPVP4VPVP4/p/pVF{pVPVP8XgK VP
V9d\
4WFP
&VPF$pWFP
,PV4K&	K}	VPF{pVPVP8XgK VP
V9d\
4WVP
&VPF$pWVP
,PV4K&	K}	\VP4^8dVPRS,.R7M,VFpV!W�4K
	VPFpV!W�4K
	VP'd_\VP4^8d(VPVPRS,.R7R#VPFpV!W�4K
	R#R#)c��<�VPV9dR#SWP,9dR#VPS.,VnWP,PS4R#)z�
Check if we already added the component to the repository, since
a repository could be splitted into different apt lines. If not
add the component
N)r:rBr�)rH�comps_per_distr�s&&�r�add_component_only_once�?Distribution._enable_component.<locals>.add_component_only_onceQsO����{�{�.�0���~�k�k�2�2��!�<�<�4�&�0�F�L��;�;�'�+�+�D�1r
rv)rB)rCrBN)rAr&r%rCrr:rErBr�r.rrZr�r-)	rr�r��sourcesr��comps_per_sdist�sr�rHs	&f       rr��Distribution._enable_componentPs����	2�$�����t�(�(�)����t�)�)�*������A��v�v��)�)�)��6�6��/�-0�U�N�6�6�*����A�"�6�6�*�.�.�q�1�!�	��)�)�A��v�v��)�)�)��6�6��0�.1�e�O�F�F�+����A�#�F�F�+�/�/��2�!�	*��t� � �!�A�%��O�O�4�$�;�-�O�0�"��'��?�"��2�2��'��@�3������4�+�+�,�q�0����T�%5�%5�d�T�k�]��K�#�6�6�F�+�F�D�7�
 r
c���.pVPVP4VPVP4VPVP4WP9d.pVPVP4VFopWP
9gKVP
pVP
V4WCn\VP
4^8gKTVPP
V4Kq	R#)z`
Disable a component in all main, child and source code sources
(excluding cdrom based sources)
N)	rAr&r%r.r+rB�removerZr#)rr�r�rHrBs&&   r�disable_component�Distribution.disable_component�s���
�����t�(�(�)����t�)�)�*����t�/�/�0��#�#�#��G��N�N�4�,�,�-��F��|�|�#��������T�"�$���v�|�|�$�q�(��$�$�+�+�F�3�
r
c�Pa�V3Rlp.p.pVSnSPFpV!WQV4K	SPFKpVPPe(VPPVP
8wgKBV!WQV4KM	SPFpV!WQV4K	R#)z@Change the server of all distro specific sources to
a given hostc�n<�WnVPFfpVPVPV.V9dVPPV4K>VP	VPVPV.4Kh	\VP4^8dSPPV4R#R#)�N)r=rBr:r�r@rZr#)rHr=�seenr�rs&&& �r�change_server_of_source�;Distribution.change_server.<locals>.change_server_of_source�s�����J������J�J����T�2�d�:��L�L�'�'��-��K�K����V�[�[�$� ?�@�	%�
�6�<�<� �1�$�� � �'�'��/�%r
N)r/r&r%r;rYr=r.)rr=r��seen_binary�seen_sourcerHsf&    r�
change_server�Distribution.change_server�s����		0�����!����'�'�F�#�F��=�(��(�(�F����(�(�0��?�?�+�+�v�z�z�9�'��[�A�
)��.�.�F�#�F��=�/r
c�*�WP8XdR#R#)z/Compare a given name with the release codename.TF)r�rr6s&&rr5�Distribution.is_codename�s���=�=� ��r
)rr+r(r%rr[rdrer/rr'r)r*r-rrrr0r&r1rr.r$rr#r,r2�N)NNNNr )rr	r
rrrIrFr}r�r�r�r�r�r�r5r�__classdictcell__��
__classdict__s@rrr(sN����:<�R�%� T�l6-�p.�C�J#�J&�";E�z4�(>�<�r
rc�6a�]tRtRtoRtRtRtRtRtVt	R#)�DebianDistributioni�z)Class to support specific Debian featuresc�L�WP8XgVPR9dR#R#)zuCompare a given name with the release codename and check if
if it can be used as a synonym for a development releasesTF)�testing�unstable)rrr�s&&rr5�DebianDistribution.is_codename�s ���=�=� �D�L�L�4K�$K��r
c��RpVPR4pVPR4pVR8wdVR8wdW\R4,VpW P9dU\R4\P
!RVPV,P
44P
4,#RVP
R4,#)	zQTry to get a human readable name for the main mirror of a country
Debian specificNz://ftp.z.debian.orgrurRrvrwrX)rgrZr[rVrrcrxrys&&   rr}�#DebianDistribution._get_mirror_name�s������K�K�	�"��
�[�[��
'����7�r�R�x���Y��/�"�5�G��n�n�$��/�"��"�"�����w� 7� >� >� @���&�(��
��&�-�-��-�-�-r
c�4�\PVRR7R#)z http://ftp.%s.debian.org/debian/�rhN�rrF�rs&rrF�DebianDistribution.get_mirrors�s��� � ��"D�	!�	
r
rN)
rr	r
r�__doc__r5r}rFrr�r�s@rr�r��s����3��.�&
�
r
r�c�*a�]tRtRtoRtRtRtVtR#)�UbuntuDistributioni�z)Class to support specific Ubuntu featuresc�4�\PVRR7R#)z$http://%s.archive.ubuntu.com/ubuntu/r�Nr�r�s&rrF�UbuntuDistribution.get_mirrors�s��� � ��"H�	!�	
r
rN�rr	r
rr�rFrr�r�s@rr�r��s����3�
�
r
r�c�*a�]tRtRtoRtRtRtVtR#)�UbuntuRTMDistributioni�z-Class to support specific Ubuntu RTM featuresc�<�VPPVnR#r�)r$rYr0r�s&rrF�!UbuntuRTMDistribution.get_mirrors�s���/�/�8�8��r
)r0Nr�r�s@rr�r��s����7�9�9r
r�c��^RIp^RIHpHpHpV!RR.VVRR7P4^,pVP
4F5pVPR4'gKVPR^4^,u#	R# \dDpTPTP8wd\P!R	T,4Rp?R#Rp?ii;i)
z=Get the current channel from system-image-cli -i if possible.N)�DEVNULL�PIPE�Popenzsystem-image-cliz-iT)�stdout�stderr�universal_newlinesz	channel: z: z+system-image-cli failed, using defaults: %s)
�errno�
subprocessr�r�r��communicate�
splitlinesr>�split�OSError�ENOENT�logging�warning)r�r�r�r��out�line�excs       r�_system_image_channelr��s����/�/�Q��
��&���#�	
�
�+�-�����N�N�$�D����{�+�+��z�z�$��*�1�-�-�%����Q��9�9����$��O�O�I�C�O�P����Q�s$�A
A>�A>�:A>�>C�	8C�Cc��VeVP4pV'dV'dV'd	V'g�\P!4pVR,pVR,pVR,pVPR4pVPR.4pVF4pVPRVP	4,R4pVfK0W�V&K6	VR8XdL\4p	V	e>R	V	9d7R
pV	P
R^4^,PR^4^,pTpTpVR8Xd\WW#WE4#VR
8Xd\WW#WE4#VR
8Xd\WW#WE4#\WW#WE4#)z�
Check the currently used distribution and return the corresponding
distriubtion class that supports distro specific features.

If no paramter are given the distro will be auto detected
N�ID�VERSION_CODENAME�PRETTY_NAME�
VERSION_ID�ID_LIKEz%s_VERSION_CODENAME�ubuntuzubuntu-rtm/z
ubuntu-rtmr!�-�debian)r�platform�freedesktop_os_release�get�upperr��rsplitr�r�r�r�r)
rrrrrr�
os_release�like_id�
like_codename�channels
&&&&&&    r�
get_distror�s]�� 
�~�
�X�X�Z���8����4�4�6�
�
��
���0�1�� ��/���.�.��.���.�.��B�/���G�&�N�N�%��
�
��7���M��(�*7�w�'����>�+�-�G��"�}��'?�!��"�>�>�#�q�1�!�4�:�:�3��B�1�E��&��"��	�X�~�!��+��
�	
�
�\��$��+��
�	
�
�x��!��+��
�	
��B�+��X�Xr
)rr�r\r�r��xml.etree.ElementTreer�apt_pkgrV�	Exceptionrrr�r�r�r�r�rr
r�<module>r�sz��4��	��	�-� �	�	�	�\�\�~!
��!
�H
��
�9�.�9��,�
�����
5Yr

Youez - 2016 - github.com/yon3zu
LinuXploit