__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ 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]: ~ $
�

��gZ8��0�SSKrSSKr\R"SS5 SSKJrJr SSKJr SSKrSSK	r	SSK
r
SSKJs J
r
 SSKJr SSKJr \"\"S55urr\"\"S	55urrrrSS
KJr \
R8S:�aSrSS
jr"SS5rg)�N�Gtkz3.0)�GObjectr)�gettext)�
MirrorTest)�setup_ui��)�CountryInformation�3c��X:�X:-
$�N�)�a�bs  �E/usr/lib/python3/dist-packages/softwareproperties/gtk/DialogMirror.py�<lambda>r-s
����!�%�(�c�N�URUSSSS5upEpgURUSSSS5up�p�URU5nURU5n
U(aU
(a[XH5$U(agU
(agU(agU	(agX�:wa[X�5$[XH5$)z�sort function for the mirror list:
- at first show all custom urls
- secondly the separator
- show mirrors without a county first (e.g. the automatic mirror url)
- third the official mirrors. if available
  sort the countries
r�r����)�get�iter_has_child�cmp)�model�iter1�iter2�data�url1�sep1�custom1�mirror1�url2�sep2�custom2�mirror2�
has_child1�
has_child2s              r�sort_mirrorsr)/s���(-�y�y���1�a��'C�$�t�7�',�y�y���1�a��'C�$�t�7��'�'��.�j��'�'��.�j�	�W��T��
 �����	
����	�	!��z�.�.�
��_�rc�t�\rSrSrSrSrSrSSjrSSjrSSjr	SS	jr
SS
jrSrSSjr
S
rSrSrg)�DialogMirror�Kc���SSjnX@l[5Ul[U[R
R
USS5SS9 URUlURRU5 URUlURRUR5 X0lURUlURUlUR"UlUR&UlUR*UlUR.UlUR2UlUR6UlUR2UlUR.Ul[>R@"[BRD[BRD5nUR8RGU5 [>RH"5nUR8RKUS5 UR8RMUSS	5 [>RN"[BRD[BRP[BRP[BRR5Ul*URRWUS5 [>RX"URTS
9Ul-X0lURRGURZ5 [>RH"5Ul.UR\R_SUR`URT5 [>Rb"SUR\[dS
9Ul3URRiURf5 0nSn	URRk5Rk5n
[mUR5S	:�ahURHDnU
RoSUSSS/5 URfRMUR\S[p5 MF U
RoS/SQ5 URRrRtRw5GHnURRrRtUnURxU;a$U
RoX�RxUSSU/5 M[URxS:wa�U
RoSURR{URx5SSS/5nURxURR|:XaU	S:XaUn	U
RoXSSU/54 XURx'M�U
RoSUSSU/5 GM U	S:wa�URZRURZR�U	5S5n
URR�U
S5 URR�U
SS5 URR�U
SSS9 URZR�[�S5 g)zI
Initialize the dialog that allows to choose a custom or official mirror
Nc�.�URU[5$r
)�	get_value�COLUMN_SEPARATOR)r�iterrs   r�is_separator�+DialogMirror.__init__.<locals>.is_separatorQs�����t�%5�6�6r�
gtkbuilderzdialog-mirror.uizsoftware-properties)�domainT�markupr)r�edited�URI)�textF�editable)NTFNr��?��	use_align�	row_alignr
)F�custom_mirrorsr
�country_infor�os�path�join�
dialog_mirror�dialog�set_transient_for�dialog_mirror_test�dialog_test�distro�treeview_mirrors�treeview�button_mirror_edit�button_edit�button_mirror_remove�
button_remove�button_mirror_choose�
button_choose�button_test_cancel�
button_cancel�label_test_mirror�
label_test�progressbar_test_mirror�progressbar_test�combobox_mirror_proto�combobox�progress�label_actionr�	ListStorer�TYPE_STRING�	set_model�CellRendererText�
pack_start�
add_attribute�	TreeStore�TYPE_BOOLEAN�
TYPE_PYOBJECTr�set_row_separator_func�
TreeModelSort�
model_sort�renderer_mirror�connect�on_edited_custom_mirror�TreeViewColumn�
COLUMN_URI�
column_mirror�
append_column�	get_model�len�append�
COLUMN_CUSTOM�source_template�
mirror_set�keys�location�get_country_name�code�get_path�convert_child_iter_to_iter�
expand_row�
set_cursor�scroll_to_cell�set_default_sort_funcr))�self�parent�datadirrIr?r2�model_proto�cr�map_loc�patriotr�mirror�hostname�	path_sorts              r�__init__�DialogMirror.__init__Ms���7�)��*�,�D���T�2�7�7�<�<���7I�J�Sh�i��$�$�D�K��K�K�!�!�&�)��.�.�D�����&�&�t�{�{�3��K��)�)�D�M��.�.�D���2�2�D���2�2�D���0�0�D���,�,�D�O� �8�8�D���.�.�D�M��0�0�D�M��.�.�D���-�-�� 3� 3� '� 3� 3�5�K��M�M���K�(�	�	�	�	�B��M�M���R��&��M�M����H�a�0����w�2�2�&�3�3�&�3�3�&�4�4�6�D�J�	�M�M�(�(��t�<��'�'�d�j�j�9�D�O��K��M�M���D�O�O�,��/�/�1�D����� � ��!%�!=�!=�!%���-��+�+�E�,0�,@�,@�1;�=�D��	�M�M���� 2� 2�3��G��G��M�M�#�#�%�/�/�1�E�
�4����!�#��)�)�F��L�L����t�T�:�;����,�,�T�-A�-A�-7�-:�
<�*�
	���T�4�5��K�K�/�/�:�:�?�?�A�����,�,�7�7��A���?�?�g�%��L�L����1�"�E�5�&�9�
;�
�_�_��
$��\�\�$�#'�#4�#4�#E�#E�f�o�o�#V�X]�_d�fj�"k�m�F����$�"3�"3�"8�"8�8�W��_� ���L�L��E�5�&�!A�B�C�'-�F�O�O�$��L�L���%���?�@�B��$���O�O�,�,�T�_�_�-W�-W�X_�-`�ab�-c�d�	��
�
� � ��E�2��
�
� � ��D�%�8��
�
�$�$�Y�$�#�$�N��O�O�)�)�,��=rc�`�URU5nURU5nUS:wa�URU[U5 US:waJUR	U[
5(d/UR	U[5(dURS/SQ5 URRURU55 gURU5 UR	UR5[
5(aURUR55 URRS5 g)z_Check if the new mirror uri is faild, if yes change it, if not
remove the mirror from the list �Nr)NTF�r)�get_iter�	iter_next�	set_valuerlr/r0rr�insertrQ�
set_sensitive�is_valid_mirror�remove�get_iter_firstrKr|)r�cellrB�new_textrr1r�s       rrj�$DialogMirror.on_edited_custom_mirror�s����>�>�$��D�����%�I��2�~�
����j�(�3�����O�O�I�'7�8�8��O�O�I�}�5�5��L�L��/�0����(�(��)=�)=�h�)G�H��	���T���?�?�5�/�/�1�3C�D�D��L�L��-�-�/�0��
�
� � ��&�
rc�J�US:Xag[R"SU5S:Xagg)z$Check if a given uri is a vaild one NFzG^((ftp)|(http)|(file)|(rsync)|(https))://([a-z]|[A-Z]|[0-9]|:|/|\.|~)+$T)�re�match)r�uris  rr��DialogMirror.is_valid_mirror�s(��
�d�{��	���\�^a�	b�fj�	j��rNc�z�UR5up4US:XaRURRS5 URRS5 URRS5 gUR5nUR
U5nURU[5nURR5nUR5 US:wa�URRS5 /n	URHOn
U
RU	;aMU	RU
R5 URU
R55 MQ URRS5 URRS5 gURRURU[ 55 URRURU[ 55 URRUR#URU[$555 URRS5 g)z\Check if the currently selected row in the mirror list
contains a mirror and or is editable NFTr)�
get_cursorrOr�rMrQror�r/�
COLUMN_MIRRORrY�clear�repositories�protorq�get_info�
set_activerrr�rl)rrKr�row�columnrr1r��model_protos�seen_protos�repos           r�"on_treeview_mirrors_cursor_changed�/DialogMirror.on_treeview_mirrors_cursor_changed�s����'�'�)�M�S�
�d�{����(�(��/����&�&�u�-����(�(��/����� �E��>�>�#��D�
�_�_�T�=�
1�F��=�=�*�*�,�L�����
��~��
�
�#�#�D�)����'�'�D��z�z�[�(�����t�z�z�*�����
�
��0�(�	
�
�
� � ��#����(�(��.�	
���(�(�����}�)M�N����&�&�u���t�]�'K�L����(�(��)=�)=�e�o�o�d�T^�>_�)`�a��
�
�#�#�E�*rc���URR5up4URR5RU5nURR5R5nUR	U5 URUR
5[5(aUR	UR
55 URRS5 g)z%Remove the currently selected mirror r�N)	rKr�ror�r�r/r�r0r|)r�buttonrrBr�r1rs       r�on_button_mirror_remove_clicked�,DialogMirror.on_button_mirror_remove_clicked�s����=�=�+�+�-�L�D��=�=�"�"�$�-�-�d�3�D��M�M�#�#�%�/�/�1�E�	�L�L������u�+�+�-�/?�@�@�
���U�)�)�+�,��M�M���T�"rc��URR5R5nURS[S5SSS/5 URR	5 URRSURSS9 g)z@Add a new mirror at the beginning of the list and start
editing Nz
New mirrorFTr���focus_column�
start_editing)rKrorq�_�
grab_focusr|rm)rr�rrs    r�on_button_mirror_add_clicked�)DialogMirror.on_button_mirror_add_clicked�so��
�M�M�#�#�%�/�/�1�E�	�L�L���,����d�;�<��M�M�����M�M���T�*.�*<�*<�+/��1rc��URR5up4URR5 URRX4SS9 g)z?Grab the focus and start editing the currently selected mirror Tr�N)rKr�r�r|)rr�rrBr�s     r�on_button_mirror_edit_clicked�*DialogMirror.on_button_mirror_edit_clickeds=���=�=�+�+�-�L�D��M�M�����M�M���T�d��Krc�&�URS5 g)z;If anybody wants to close the dialog, stop the test before NT)�on_button_cancel_test_clicked)rrE�eventrs    r�"on_dialog_mirror_test_delete_event�/DialogMirror.on_dialog_mirror_test_delete_events���&�&�t�,�rc��URR5nURR5 URR	5up#U(dgURR5nUR
U5nURU[5nU[RR:Xa�US:XaURU[5$URR5nUR
URR55nURU[5n	URU[ 5n
U	<SUR"<SU
<3$g)z<Run the chooser dialog and return the chosen mirror or None Nz://�/)rE�run�hiderKr�ror�r/r�r�ResponseType�OKrlrY�
get_active�COLUMN_PROTO�
COLUMN_DIRr�)r�resr�r�rr1r�r��
iter_protor��dirs           rr��DialogMirror.runs��
�+�+�/�/�
�C��K�K�����M�M�,�,�.�M�S����M�M�#�#�%�E��>�>�#��D�
�_�_�T�=�
1�F��c���!�!�!��T�>��?�?�4��4�4��-�-�1�1�3�K�$�-�-�d�m�m�.F�.F�.H�I�J��)�)�*�l�C�E��'�'�
�J�?�C�#(�&�/�/�3�?�?�rc��URRS5 URR5 [R
"5UlURR5 [R
"5n[R"S5nUR5R5nSURRR<SURRRSR<SU<S3n[![#URRR$R'55UUUR5nUR)5 URR+5(Ga[,R."5(a2[,R0"S5 [,R."5(aM2UR3S	5 UR+5(a{UR4R7[9S
5UR4SUR4S4-5 UR4R;UR4S5 UR=5 URR+5(aGMURR?5 UR@RCS
5 URDS:wa1URFRIURJURD5 g[LRN"URP[9S5[9S55 g)zPPerform a test to find the best mirror and select it
afterwards in the treeview Tzdpkg --print-architecturezdists/r�rz/binary-z/Packages.gzFg�������?zCompleted %s of %s testsrrr�Nz%No suitable download server was foundz&Please check your Internet connection.))rSr�rH�show�	threading�Event�running�setrA�popen�read�striprIrs�name�
componentsr�listrt�values�start�is_setr�events_pending�main_iteration_do�waitrZ�set_textr��set_fractionr�r�rU�	set_label�bestrg�foreach�
select_mirror�dialogs�show_error_dialogrE)rr�r�progress_update�pipe�arch�	test_file�tests        r�on_button_test_clicked�#DialogMirror.on_button_test_clicked(sF��	���$�$�T�*��������?�?�$�D�L��L�L�����o�o�'�O�
�8�8�/�0�D��9�9�;����D��+�+�-�-�2�2��+�+�-�-�8�8��;�@�@���I��d�4�;�;�6�6�A�A�H�H�J�K�"�(����'�D�	�J�J�L��,�,�
�
�
�
�� � �"�"��!�!�%�(�� � �"�"�
	���S�!��!�!�#�#��M�M�"�"�1�%?�#@�$(�M�M�!�$4�d�m�m�A�6F�#G�$H�
I��M�M�&�&�t�}�}�Q�'7�8��!�!�#��,�,�
�
�
�
�	�������O�O���b�!��y�y�D�������� 2� 2�D�I�I�>��!�!�$�+�+�"#�$K�"L�"#�$L�"M�	Orc��URU[5U:XanURRU5 URR	USS5 URRUSSS9 URR
5 gg)z;Select and expand the path to a matching mirror in the listNFTr;r<)r/rlrK�expand_to_pathr|r}r�)rrrBr1r�s     rr��DialogMirror.select_mirrorTsn�����t�Z�(�F�2��
�
�$�$�T�*��
�
� � ��t�U�3��
�
�$�$�T�T�S�$�I��
�
� � �"��
3rc���URR5 URRS[	S5-5 UR
R
S5 URRS5 g)z"Abort the mirror performance test z	<i>%s</i>zCanceling...FrN)	r�r�rUr�r�rSr�rWr�)rr�s  rr��*DialogMirror.on_button_cancel_test_clicked^sV���L�L�����O�O���k�A�n�,=�=�>����$�$�U�+����&�&�q�)r)rSrQrMrOrmrYr@r?rErHrIr[rUrrgrZrWrhr�rKr
)�__name__�
__module__�__qualname__�__firstlineno__r�rjr�r�r�r�r�r�r�r�r�r��__static_attributes__rrrr+r+KsD��\>�|�,�+�B	#�1�L��
�:*O�X�*rr+r
) rA�gi�require_version�
gi.repositoryrrrr�r�r��sys�softwareproperties.gtk.dialogs�gtkr��softwareproperties.MirrorTestr�softwareproperties.gtk.utilsrr��ranger�r�rlr0rrr��%softwareproperties.CountryInformationr
�versionrr)r+rrr�<module>rs���.
�	����5�%� �&� ��	�
�0�0�4��
"�%��(�^���z�?C�E�!�H�~�<��
�}�m�D��;�;�#��
(�C��8X*�X*r

Filemanager

Name Type Size Permission Actions
DialogAdd.cpython-313.pyc File 3.6 KB 0644
DialogAddSourcesList.cpython-313.pyc File 7.46 KB 0644
DialogCacheOutdated.cpython-313.pyc File 6.73 KB 0644
DialogEdit.cpython-313.pyc File 5.58 KB 0644
DialogEditDeb822.cpython-313.pyc File 10.11 KB 0644
DialogMirror.cpython-313.pyc File 19.47 KB 0644
DialogUaAttach.cpython-313.pyc File 11.86 KB 0644
DialogUaDetach.cpython-313.pyc File 3.7 KB 0644
DialogUaFipsEnable.cpython-313.pyc File 2.31 KB 0644
SimpleGtkbuilderApp.cpython-313.pyc File 3.14 KB 0644
SoftwarePropertiesGtk.cpython-313.pyc File 90.18 KB 0644
UbuntuProPage.cpython-313.pyc File 22.05 KB 0644
__init__.cpython-313.pyc File 162 B 0644
dialogs.cpython-313.pyc File 1.05 KB 0644
utils.cpython-313.pyc File 8.13 KB 0644
Filemanager