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 :  /usr/lib/python3/dist-packages/apt/progress/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/lib/python3/dist-packages/apt/progress/__pycache__/base.cpython-314.pyc
+
S^�i�/���Rt^RIHt^RIt^RIt^RIt^RIt^RIt^RIt^RI	t	^RI
t
.ROt!RR4t!RR4t
!R	R4t!R
R4tR#)z�Base classes for progress reporting.

Custom progress classes should inherit from these classes. They can also be
used as dummy progress classes which simply do nothing.
)�annotationsN�AcquireProgress�
CdromProgress�InstallProgress�
OpProgressc��]tRt^(tRtR;t;t;t;tt	^;t
;ttRRlt
RRltRRltR	R
ltRRltR
RltRRltRRltRtR#)rz�Monitor object for downloads controlled by the Acquire class.

This is an mostly abstract class. You should subclass it and implement the
methods to get something useful.
�c� �V^8�dQhRRRR/#���itemzapt_pkg.AcquireItemDesc�return�None�)�formats"�3/usr/lib/python3/dist-packages/apt/progress/base.py�__annotate__�AcquireProgress.__annotate__2s��K�K�0�K�T�K�c
��R#)z<Invoked when an item is successfully and completely fetched.Nr��selfrs&&r�done�AcquireProgress.done2��rc� �V^8�dQhRRRR/#r
r)rs"rrr5s��9�9�0�9�T�9rc
��R#)z*Invoked when an item could not be fetched.Nrrs&&r�fail�AcquireProgress.fail5rrc� �V^8�dQhRRRR/#r
r)rs"rrr8s��?�?�1�?�d�?rc
��R#)z0Invoked when some of the item's data is fetched.Nrrs&&r�fetch�AcquireProgress.fetch8rrc� �V^8�dQhRRRR/#r
r)rs"rrr;s����3���rc
��R#)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.
Nrrs&&r�ims_hit�AcquireProgress.ims_hit;rrc�$�V^8�dQhRRRRRR/#)r�media�str�driver
�boolr)rs"rrrCs!����#��c��d�rc
��R#)a�Prompt the user to change the inserted removable media.

The parameter 'media' decribes the name of the media type that
should be changed, whereas the parameter 'drive' should be the
identifying name of the drive whose media should be changed.

This method should not return until the user has confirmed to the user
interface that the media change is complete. It must return True if
the user confirms the media change, or False to cancel it.
Fr)rr(r*s&&&r�media_change�AcquireProgress.media_changeCs��rc� �V^8�dQhRRRR/#)r�ownerzapt_pkg.Acquirer
r+r)rs"rrrPs��
�
�?�
�t�
rc
��R#)aOPeriodically invoked while the Acquire process is underway.

This method gets invoked while the Acquire progress given by the
parameter 'owner' is underway. It should display information about
the current state.

This function returns a boolean value indicating whether the
acquisition should be continued (True) or cancelled (False).
Tr)rr0s&&r�pulse�AcquireProgress.pulsePs��rc��V^8�dQhRR/#�rr
rr)rs"rrr\s��
�
�t�
rc
�v�RVnRVn^Vn^VnRVnRVnRVn^VnR#)z0Invoked when the Acquire process starts running.rN��
current_bytes�current_cps�
current_items�elapsed_time�
fetched_bytes�
last_bytes�total_bytes�total_items�rs&r�start�AcquireProgress.start\sC��!������������ �����������rc��V^8�dQhRR/#r5r)rs"rrrhs��>�>�d�>rc
��R#)z/Invoked when the Acquire process stops running.Nrr@s&r�stop�AcquireProgress.stophrrr7N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__r8r9r<r=r>r:r;r?rrr!r%r-r2rArE�__static_attributes__rrrrr(sa���NQ�P�M�P�K�P�-�P�*�{�12�2�M�2�L�;�K�9�?���
�
�>�>rc�B�]tRt^ltRt^tRRltRRltRRltRt	R	#)
rz�Base class for reporting the progress of adding a cdrom.

Can be used with apt_pkg.Cdrom to produce an utility like apt-cdrom. The
attribute 'total_steps' defines the total number of steps and can be used
in update() to display the current progress.
c��V^8�dQhRR/#)rr
z
str | Noner)rs"rr�CdromProgress.__annotate__vs����
�rc
��R#)zxAsk for the name of the cdrom.

If a name has been provided, return it. Otherwise, return None to
cancel the operation.
Nrr@s&r�ask_cdrom_name�CdromProgress.ask_cdrom_namevrrc��V^8�dQhRR/#)rr
r+r)rs"rrrO}s����d�rc
��R#)zqAsk for the CD-ROM to be changed.

Return True once the cdrom has been changed or False to cancel the
operation.
Frr@s&r�change_cdrom�CdromProgress.change_cdrom}s��rc�$�V^8�dQhRRRRRR/#)r�textr)�current�intr
rr)rs"rrrO�s!����3�����rc
��R#)z�Periodically invoked to update the interface.

The string 'text' defines the text which should be displayed. The
integer 'current' defines the number of completed steps.
Nr)rrXrYs&&&r�update�CdromProgress.update�rrrN)
rGrHrIrJrK�total_stepsrQrUr\rLrrrrrls"����K����rc���]tRt^�tRtR wttttRRlt	RRlt
RRltRR	ltR
Rlt
RR
ltRRltRRltRRltRRltRRltRRltRRltRRltRtR#)!rz4Class to report the progress of installing packages.c��V^8�dQhRR/#r5r)rs"rr�InstallProgress.__annotate__�s��A�A�$�Arc	�^�\P!4wVnVn\P!VPR4Vn\P!VPR4Vn\P!VP\P\P4R#)�w�rN)
�os�pipe�statusfd�writefd�fdopen�write_stream�
status_stream�fcntl�F_SETFL�
O_NONBLOCKr@s&r�__init__�InstallProgress.__init__�s`��(*���	�%�����+-�9�9�T�\�\�3�+G���,.�I�I�d�m�m�S�,I���
���D�M�M�5�=�=�"�-�-�@rc��V^8�dQhRR/#r5r)rs"rrra�s��'�'�d�'rc
��R#)z(Abstract) Start update.Nrr@s&r�start_update�InstallProgress.start_update�rrc��V^8�dQhRR/#r5r)rs"rrra�s��:�:�t�:rc
��R#)z+(Abstract) Called when update has finished.Nrr@s&r�
finish_update�InstallProgress.finish_update�rrc��V^8�dQhRR/#)rr
rr)rs"rrra�s����?�rc	��V#�Nrr@s&r�	__enter__�InstallProgress.__enter__�s���rc�(�V^8�dQhRRRRRRRR/#)r�type�object�value�	tracebackr
rr)rs"rrra�s(��#�#�V�#�F�#�v�#�$�#rc	�n�VPP4VPP4R#r{)rj�closerk)rrr�r�s&&&&r�__exit__�InstallProgress.__exit__�s&�������!���� � �"rc�$�V^8�dQhRRRRRR/#)r�pkgr)�errormsgr
rr)rs"rrra�s&��M�M��M��M��Mrc
��R#)z>(Abstract) Called when a error is detected during the install.Nr)rr�r�s&&&r�error�InstallProgress.error�rrc�$�V^8�dQhRRRRRR/#)rrYr)�newr
rr)rs"rrra�s&��P�P��P�#�P�$�Prc
��R#)zA(Abstract) Called when a conffile question from dpkg is detected.Nr)rrYr�s&&&r�conffile�InstallProgress.conffile�rrc�(�V^8�dQhRRRRRRRR/#)rr�r)�percent�float�statusr
rr)rs"rrra�s(��=�=��=�u�=�c�=�d�=rc
��R#)z.(Abstract) Called when the APT status changed.Nr)rr�r�r�s&&&&r�
status_change�InstallProgress.status_change�rrc�$�V^8�dQhRRRRRR/#)rr�r)r�r
rr)rs"rrra�s!��>�>�c�>�3�>�4�>rc
��R#)z/(Abstract) Called when the dpkg status changed.Nr)rr�r�s&&&r�dpkg_status_change�"InstallProgress.dpkg_status_change�rrc�$�V^8�dQhRRRRRR/#)rr�r)�stager
rr)rs"rrra�s!����c��#��$�rc
��R#)z�(Abstract) Sent just before a processing stage starts.

The parameter 'stage' is one of "upgrade", "install"
(both sent before unpacking), "configure", "trigproc", "remove",
"purge". This method is used for dpkg only.
Nr)rr�r�s&&&r�
processing�InstallProgress.processing�rrc� �V^8�dQhRRRR/#)r�objz$apt_pkg.PackageManager | bytes | strr
rZr)rs"rrra�s��.#�.#�;�.#��.#rc

��VP4pV^8Xda\P!VPR4\P
!VP
VPP444W nVP)4p\P*!V4# \dLwi;i \dc\P
!\P!\PRRR\TPP44RT44L�\d`p\PPRT,4\P
!\ P"P$4Rp?EL
Rp?ii;i)a�Install using the object 'obj'.

This functions runs install actions. The parameter 'obj' may either
be a PackageManager object in which case its do_install() method is
called or the path to a deb file.

If the object is a PackageManager, the functions returns the result
of calling its do_install() method. Otherwise, the function returns
the exit status of dpkg. In both cases, 0 means that there were no
problems.
T�dpkgz--status-fdz-iz%s
N)�forkre�set_inheritablerh�AttributeError�_exit�
do_installrj�fileno�spawnlp�P_WAITr)�	Exception�sys�stderr�write�apt_pkg�PackageManager�
RESULT_FAILED�	child_pid�
wait_child�WEXITSTATUS)rr��pid�e�ress&&   r�run�InstallProgress.run�s!���i�i�k���!�8�
��"�"�4�<�<��6�
?��������(9�(9�(@�(@�(B�C�D�"���o�o����~�~�c�"�"��7"�
��
��"�
�����J�J��	�	���%��D�-�-�4�4�6�7����
��
?��
�
� � ��!��,�����/�/�=�=�>�>��
?�s6�!B$�=B5�$B2�1B2�5A*F
�!F
�*F
�+AF�F
c��V^8�dQhRR/#�rr
rZr)rs"rrra�s����c�rc
�,�\P!4#)zFork.)rer�r@s&rr��InstallProgress.fork�s���w�w�y�rc��V^8�dQhRR/#r5r)rs"rrra�s��-5�-5�$�-5rc
��VPP4pR;p;p;p;rgTPR4'dTPR^4wrCreM�TPR4'dTPR^4wrsrEMZTPR4'dDTPR^4wrEpTPTP4TP44TP4pTP4pTP4pTR8XgTR8XdTPY54R#TR	8XgTR
8XdT\P!RT4pT'd3TP!TP#^4TP#^44R#R#TR8Xd~\%T4TP&8wgYPP(8wdRTP+T\%T4TP44\%T4TnTP4TnR#R#TR8XdTP-Y44R#R# \d_pTP\P8wd5TP\P
8wd\
TP4Rp?R#Rp?ii;i \dR#i;i \dTPR^4wrspEL�i;i)
zUpdate the interface.N��pm�:r�r��pmerrorr�zconffile-prompt�
pmconffilez\s*'(.*)'\s*'(.*)'.*�pmstatus)rk�readline�OSError�errno�EAGAIN�EWOULDBLOCK�print�strerror�
startswith�split�
ValueErrorr��stripr��re�matchr��groupr�r�r�r�r�)	r�line�err�pkgnamer��
status_strr��baser�s	&        r�update_interface� InstallProgress.update_interface�sP��	��%�%�.�.�0�D�:<�;��;�&�;�:�;���?�?�4� � �
�9=���C��9K�6��'�:��_�_�X�
&�
&�
=�6:�j�j��a�6H�3���
��_�_�\�
*�
*�,0�J�J�s�A�,>�)�V���O�O�G�M�M�O�Z�-=�-=�-?�@��-�-�/���%�%�'�
�������Y��&�G�"3��J�J�w�+�
�(�
(�F�l�,B��H�H�5�z�B�E���
�
�e�k�k�!�n�e�k�k�!�n�=��
�z�
!��W�~����-��{�{�1J��"�"�7�E�'�N�J�<L�<L�<N�O�$�W�~���(�.�.�0���2K��X�
��#�#�G�4���Q�	��y�y�E�L�L�(�S�Y�Y�%�:K�:K�-K��c�l�l�#���		���
��
���
=�*.�*�*�S�!�*<�'���
=�s;�H-�J�+J+�-J�8AJ�J�J(�'J(�+ K�Kc��V^8�dQhRR/#r�r)rs"rrras����C�rc
�L�^^r!\P!VP...VP4VP4\P!VP\P4wrWP8XdV#K� \d/pTPwrET\
P8wdhRp?L�Rp?ii;i \dRpTP
\
P8XdRp?T#TP
\
P8wdhRp?EKRp?ii;i)z�Wait for child progress to exit.

This method is responsible for calling update_interface() from time to
time. It exits once the child has exited. The return values is the
full status returned from os.waitpid() (not only the return code).
N)
�selectrk�select_timeoutr��argsr��EINTRr�re�waitpidr��WNOHANG�ECHILD)rr�r�r��errno_�_errstrr�s&      rr��InstallProgress.wait_childs�����c��
��
�
�t�1�1�2�B��D�<O�<O�P�
�!�!�#�
��Z�Z�����
�
�C�
���.�.�(���
�)���
�$)�J�J�!���U�[�[�(��)��
���
��9�9����,���
��9�9����+��,��
�s6�.B�AC�C�$B?�?C�D#�D�7 D�D#)r�r�r�rkrgrjrhN)�rg�������?r�)rGrHrIrJrKr�r�r�r�rorsrwr|r�r�r�r�r�r�r�r�r�r�rLrrrrr�sc��>�1@�.�I�w���A�'�:��#�M�P�=�>��.#�`�-5�^�rc�D�]tRtRtRtR	wttttR
RRllt	RRlt
RtR#)ri;z^Monitor objects for operations.

Display the progress of operations such as opening the cache.Nc� �V^8�dQhRRRR/#)rr�zfloat | Noner
rr)rs"rr�OpProgress.__annotate__Bs��#�#�l�#�d�#rc
��Ve	WnR#R#)z�Called periodically to update the user interface.

You may use the optional argument 'percent' to set the attribute
'percent' in this call.
N�r�)rr�s&&rr\�OpProgress.updateBs����"�L�rc��V^8�dQhRR/#r5r)rs"rrr�Ks��;�;�d�;rc
��R#)z,Called once an operation has been completed.Nrr@s&rr�OpProgress.doneKrrr�)Fr�rr�r{)rGrHrIrJrK�major_change�opr��subopr\rrLrrrrr;s'��E�(:�$�L�"�g�u�#�;�;r)rrrr)rK�
__future__rr�rl�iorer�r�r�r��__all__rrrrrrr�<module>r�s[��(�
#���	�	�	�
�
��
O��A>�A>�H��Bk�k�\;�;r

Youez - 2016 - github.com/yon3zu
LinuXploit