__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
�

8.�g,U����SSKrSSKrSSKrSSKrSSKrSSKJr SSKJr "SS\	5r
"SS5r"SS	\5r"S
S\5r
"SS
\
5rSrSSSS/04Sjrg)�N)�ElementTree)�gettextc��\rSrSrSrg)�NoDistroTemplateException�$�N)�__name__�
__module__�__qualname__�__firstlineno__�__static_attributes__r��3/usr/lib/python3/dist-packages/aptsources/distro.pyrr$s��rrc�f�\rSrSr/04SjrSrSSjrSrSrSSjr	S	r
S
rSrSr
S
rSrg)�Distribution�(c��UR5UlX lX0lX@lXPlX`lSUlSUlg)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<���(�(�*��� �
�&������,�� ���$��rc�R
�XlSUl/Ul/Ul/Ul/Ul/Ul/Ul/Ul/Ul	SUl
/UlSUlSUl
SUl/UlURR R"HGnUR%UR&5(dM%UR(UR*:XdMAX l O URc'[-SUR*<SUR.<35e/n/n/n/nURR15GH�nUR2(Gd�UR%UR45(GaaUR6(GaOUR6R8(Ga3UR%UR6R&5(GaUR:R=S5(aIUR>(d8UR
RAU5 URCURD5 GO�UR:R=S5(a.UR>(aUR
RAU5 GOQURFURH:XacUR>(dRURRAU5 URCURD5 URAUR:5 O�URFURH:Xa-UR>(aURRAU5 O�URFURJ:Xa-UR>(dURRAU5 OFURFURJ:Xa,UR>(aURRAU5 UR2(aGM�UR6URRL;dGM�UR>(d8URFURH:XaURRAU5 GMUR>(d8URFURJ:XaURRAU5 GMeURRAU5 GM� [OU5Ul[OU5UlURCU5 URCU5 [OU5Ul[OU5Ul	URQ5 g)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=�mediarDr-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�*������rNc��URRUlURH6nUR	S5(aMUR
R
U5 M8 [UR5S:XaURUl	OURSRUl	0UlSn[RRU5(a�[US9n[!USS5cUR"UlUR%S5nUHUnUR&SnUR&S
n[*R,"SU5URUR/5'MW SUlSUl[R4"S
SS9n	U	R7S5n
U	R7S5nUS:Xa[U	5nX�S-UR/5nU(a	X-UlX�R;aURUUlX�lgg![(a UR&S	nGNf=f![(a UR&SnGNf=f)zB
Provide a set of mirrors where you can get the distribution from
r$rz%/usr/share/xml/iso-codes/iso_3166.xml)�file�iterN�iso_3166_entry�common_namer8�alpha_2_code�alpha_3_code�iso_3166�LANG�en_UK)�default�_�.����)r&�base_urir2r.r@r4rB�lenr(r1r?�	countries�os�path�existsr�getattr�getiteratorrO�attrib�KeyErrorr�dgettextr�country�country_code�getenv�findr3)
r�mirror_template�medium�fname�et�it�elm�descr�code�locale�a�zrhs
             rrH�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$�H�'H2�H/�.H/�2I�Ic��SnURS5nURS5nUS:waUS:waX[S5-UnX R;a[S5URU-$SUR	S5-$)zgTry to get a human readable name for the main mirror of a country
Customize for different distributionsNz://z.archive.ubuntu.comrZ�
Server for %s�%s�/ )rjr]r^rX�rstrip�r�serverrg�i�lis     r�_get_mirror_name�Distribution._get_mirror_name�s|�����K�K����
�[�[�.�
/����7�r�R�x���U��^�b�1�G��n�n�$��_�%����w�(?�?�?��&�-�-��-�-�-rc���Sn/n[UR5S:d>[UR5S:Xa�U"URSUR5(aqUR[	S5URS/5 UR
(a7URUR
UR
5UR
S/5 U$[UR5S:Xa�U"URSUR5(d�UR[	S5URS/5 URSnUR
(aNU"X0R
5(d7URUR
UR
5UR
S/5 U(a#URUR
U5US/5 U$[UR5S:�a�UR[	S5URS/5 UR
(a7URUR
UR
5UR
S/5 UR[	S5SS/5 URH_nUR
U5US/nU"X0R
5(dU"X0R5(aMGXB;dMNURU5 Ma U$)	z+Return a list of used and suggested serversc�l�[R"URS5URS55$)z[Helper function that handles comaprision of mirror urls
that could contain trailing slashesrz)�re�match�stripr{)�mir1�mir2s  r�compare_mirrors�5Distribution.get_server_list.<locals>.compare_mirrors�s'���8�8�D�J�J�t�,�d�k�k�$�.?�@�@rr[rzMain serverTFzCustom serversN)r]r4r2rBrXr3r�)rr��mirrorsr}�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�,��rc�N�UcURnUcURnUc[UR5nUcURnSnSn[UR5=(d [UR5HnURn O URRXX4XVUS9nUR(akXR:Xa[URRURUUUUURUURRRU5S-S9 ggg)z#
Add distribution specific sources
N)�parentrNr[)rNr��pos)r1r�listr,r�reversedr'r(rNr%�addr/r�index)	rrEr?r<rD�commentr�rN�
new_sources	         r�
add_source�Distribution.add_sources!���;��%�%�C��<��=�=�D��=���+�+�,�E��<��#�#�D������t�1�1�2�Q�h�t�?P�?P�6Q�Q�F��;�;�D��R��%�%�)�)��t�G��*�
�
�
���D�,<�,<�$<���� � �� � ������_�_�!��$�$�)�)�/�/�
�;�a�?�
!�	
�%=�rc�T�[U/5nURHrnURRHUnURU:XdMUR
(dM(UR
U;dM:UR
UR
5 MW Mt UHnURU5 M g)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=�
componentsr8�parent_componentrB�_enable_component)r�comprDrJ�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�%�rc�^�U4Sjn/nURUR5 URUR5 0n0nUHunURUR:XdMUR
U;a[
5XFR
'URH nXFR
RU5 M" Mw URHunURUR:XdMUR
U;a[
5XVR
'URH nXVR
RU5 M" Mw [UR5S:aURST-/S9 O,UHnU"X�5 M
 URHnU"X�5 M
 UR(aT[UR5S:aURURST-/S9 gURHnU"X�5 M
 gg)Nc�>�URU;agTXR;agURT/-UlXRRT5 g)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<rDr�)rJ�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�1rr[ry)rD)rErD)rCr(r'rErr<rGrDr�r0rr]r�r/)	rr�r��sourcesr��comps_per_sdist�sr�rJs	 `       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�
 rc���/nURUR5 URUR5 URUR5 XR;a/nURUR5 UHmnXR
;dMUR
nUR
U5 XCl[UR
5S:dMRURR
U5 Mo g)z`
Disable a component in all main, child and source code sources
(excluding cdrom based sources)
r[N)	rCr(r'r0r-rD�remover]r%)rr�r�rJrDs     r�disable_component�Distribution.disable_component�s���
�����t�(�(�)����t�)�)�*����t�/�/�0��#�#�#��G��N�N�4�,�,�-��F��|�|�#��������T�"�$���v�|�|�$�q�(��$�$�+�+�F�3�
rc�J^�U4Sjn/n/nUTlTRHnU"XQU5 M TRHInURRb&URRUR
:wdM@U"XQU5 MK TRHnU"XQU5 M g)z@Change the server of all distro specific sources to
a given hostc�f>�XlURHenURURU/U;aURRU5 M=UR	URURU/5 Mg [UR5S:aTRRU5 gg)Nr[)r?rDr<r�rBr]r%)rJr?�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�$�� � �'�'��/�%rN)r1r(r'r=r\r?r0)rr?r��seen_binary�seen_sourcerJs`     r�
change_server�Distribution.change_server�s����		0�����!����'�'�F�#�F��=�(��(�(�F����(�(�0��?�?�+�+�v�z�z�9�'��[�A�
)��.�.�F�#�F��=�/rc�$�XR:Xagg)z/Compare a given name with the release codename.TF)r�rr8s  rr7�Distribution.is_codename�s���=�=� ��r)rr-r*r'rr^rgrhr1rr)r+r,r/rrrr2r(r3rr0r&rr%r.r4�N)NNNNr")r	r
rrrrKrHr�r�r�r�r�r�r�r7r
rrrrr(sF��:<�R�%� T�l6-�p.�C�J#�J&�";E�z4�(>�<rrc�*�\rSrSrSrSrSrSrSrg)�DebianDistributioni�z)Class to support specific Debian featuresc�D�XR:XdURS;agg)zuCompare a given name with the release codename and check if
if it can be used as a synonym for a development releases)�testing�unstableTF)rrr�s  rr7�DebianDistribution.is_codename�s ���=�=� �D�L�L�4K�$K��rc�`�SnURS5nURS5nUS:waUS:waX[S5-UnX R;aL[S5[R
"SURUR
55R
5-$SUR
S5-$)	zQTry to get a human readable name for the main mirror of a country
Debian specificNz://ftp.z.debian.orgrZrxrTryrz)rjr]r^rXrrfr{r|s     rr��#DebianDistribution._get_mirror_name�s������K�K�	�"��
�[�[��
'����7�r�R�x���Y��/�"�5�G��n�n�$��/�"��"�"�����w� 7� >� >� @���&�(��
��&�-�-��-�-�-rc�,�[RUSS9 g)Nz http://ftp.%s.debian.org/debian/�rk�rrH�rs rrH�DebianDistribution.get_mirrors�s��� � ��"D�	!�	
rrN)	r	r
rr�__doc__r7r�rHr
rrrr�r��s��3��.�&
rr�c��\rSrSrSrSrSrg)�UbuntuDistributioni�z)Class to support specific Ubuntu featuresc�,�[RUSS9 g)Nz$http://%s.archive.ubuntu.com/ubuntu/r�r�r�s rrH�UbuntuDistribution.get_mirrors�s��� � ��"H�	!�	
rrN�r	r
rrr�rHr
rrrr�r��s
��3�
rr�c��\rSrSrSrSrSrg)�UbuntuRTMDistributioni�z-Class to support specific Ubuntu RTM featuresc�:�URRUlgr�)r&r\r2r�s rrH�!UbuntuRTMDistribution.get_mirrors�s���/�/�8�8��r)r2Nr�rrrr�r��s
��7�9rr�c�v�SSKnSSKJnJnJn U"SS/UUSS9R5SnUR
5H0nURS5(dMURS	S
5S
s $ g![a=nURUR:wa[R"SU-5 SnAgSnAff=f)z=Get the current channel from system-image-cli -i if possible.rN)�DEVNULL�PIPE�Popenzsystem-image-cliz-iT)�stdout�stderr�universal_newlinesz	channel: z: r[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$�AA1�A1�.A1�1
B8�;3B3�3B8c�r�UbUR5nU(aU(aU(aU(d�[R"5nUSnUSnUSnURS5nURS/5nUH/nURSUR	5-S5nUcM+X�U'M1 US:XaA[5n	U	b4S	U	;a.S
nU	R
SS5SRS
S5SnUnUnUS:Xa
[XX#XE5$US
:Xa
[XX#XE5$US:Xa
[XX#XE5$[XX#XE5$)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#r[�-r�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_pkgrX�	Exceptionrrr�r�r�r�r�rrr�<module>r�sz��4��	��	�-� �	�	�	�\�\�~!
��!
�H
��
�9�.�9��,�
�����
5Yr

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 349 B 0644
_deb822.cpython-313.pyc File 7.27 KB 0644
distinfo.cpython-313.pyc File 18.84 KB 0644
distro.cpython-313.pyc File 23.43 KB 0644
sourceslist.cpython-313.pyc File 49.84 KB 0644
Filemanager