%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/aptdaemon/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/aptdaemon/__pycache__/console.cpython-312.pyc

�

��U�w���dZdZdZddlZddlZddlmZddlmZddlZddl	m
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlmZdd	lmZddlZej2j4j7d
��ddlZdd
lmZddlmZddlm Z e!d�dzZ"e!d�dzZ#ejHjJdkDZ&Gd�d�Z'd�Z(e)dk(re(�yy)z>
This module provides a command line client for the aptdaemon
z%Sebastian Heinlein <devel@glatzor.de>)�
ConsoleClient�main�N)�gettext)�ngettext)�OptionParser)�SourceEntry)�GLibT)�set_as_default�)�client)�enums)�errors�z[1mz[0m�c���eZdZdZ		d&d�Zd'd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zd
�Zd�Z
d�Zd
�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd�Zd(d�Zd�Zd�Zd�Zd�Zd�Z d �Z!d!�Z"d"�Z#d#�Z$d$�Z%d%�Z&y))rz4
    Command line interface client to aptdaemon
    c���tj�|_tj�\|_|_g|_tjtj|j�tjtj|j�tjtj|j�|j�|_g|_d|_d|_d|_d|_||_||_||_d|_d|_d|_d|_d|_t;j:�|_d|_tAjB�|_"y)NT�rz|/-\���)#r�	AptClient�_client�pty�openpty�	master_fd�slave_fd�_signals�signal�SIGINT�_on_cancel_signal�SIGQUIT�SIGWINCH�_on_terminal_resize�_get_terminal_width�_terminal_width�	_watchers�
_old_tty_mode�_show_status�_status�_percent�_show_terminal�_details�_allow_unauthenticated�_show_progress�_status_details�_progress_details�_spin_elements�	_spin_cur�time�_spin_stamp�_transactionr	�MainLoop�_loop)�self�
show_terminal�allow_unauthenticated�detailss    �3/usr/lib/python3/dist-packages/aptdaemon/console.py�__init__zConsoleClient.__init__=s���'�'�)���(+���
�%����
���
��
�
�f�m�m�T�%;�%;�<��
�
�f�n�n�d�&<�&<�=��
�
�f�o�o�t�'?�'?�@�#�7�7�9������!��� ��������
�+�����
�&;��#�"���!���!#���%�������9�9�;��� ����]�]�_��
�c
���t|�}|jj|j|j|j
|j|j||j|j��y)z#Add repository to the sources list.��
reply_handler�
error_handlerN)
rr�add_repository�type�uri�dist�comps�comment�_run_transaction�
_on_exception)r6�line�sourcesfile�entrys    r:rAzConsoleClient.add_repositoryXsX���D�!�����#�#�E�J�J��	�	�5�:�:�$)�K�K����$/�26�2G�2G�26�2D�2D�		$�	Fr<c�h�|jj||j|j��y�zInstall repository key file.r>N)r�add_vendor_key_from_filerGrH�r6�paths  r:rNz&ConsoleClient.add_vendor_key_from_fileas.�����-�-���/�/��,�,�	.�	.r<c�j�|jj|||j|j��yrM)r�add_vendor_key_from_keyserverrGrH)r6�keyid�	keyservers   r:rRz+ConsoleClient.add_vendor_key_from_keyserverhs0�����2�2��9��/�/��,�,�	3�	.r<c�h�|jj||j|j��y)zRemove repository key.r>N)r�remove_vendor_keyrGrH)r6�fingerprints  r:rVzConsoleClient.remove_vendor_keyos.�����&�&�{�59�5J�5J�59�5G�5G�	'�	Ir<c�h�|jj||j|j��y)zInstall package file.r>N)r�install_filerGrHrOs  r:rYzConsoleClient.install_fileus-�����!�!�$�d�6K�6K�04�0B�0B�	"�	Dr<c�^���fd�}�jj|�j��y)z%List the keys of the trusted vendors.c�^��|D]
}t|���jj�y�N)�printr5�quit)�keys�keyr6s  �r:�on_donez7ConsoleClient.list_trusted_vendor_keys.<locals>.on_done|s'����
���c�
�
��J�J�O�O�r<r>N)r�get_trusted_vendor_keysrH)r6ras` r:�list_trusted_vendor_keysz&ConsoleClient.list_trusted_vendor_keyszs-���	�	
���,�,�7�;?�;M�;M�	-�	Or<c
�r�|jj|||||||j|j��y)zCommit changesr>N)r�commit_packagesrGrH)r6�install�	reinstall�remove�purge�upgrade�	downgrades       r:rezConsoleClient.commit_packages�s;��	
���$�$�W�i���%,�i�37�3H�3H�37�3E�3E�	%�	Gr<c�f�|jj|j|j��y)zFix incomplete installsr>N)r�fix_incomplete_installrGrH�r6s r:rmz$ConsoleClient.fix_incomplete_install�s+�����+�+��/�/��,�,�	,�	.r<c�f�|jj|j|j��y)zRepair broken dependencies.r>N)r�fix_broken_dependsrGrHrns r:rpz ConsoleClient.fix_broken_depends�s+�����'�'�d�6K�6K�6:�6H�6H�	(�	Jr<c�f�|jj|j|j��y)zUpdate cacher>N)r�update_cacherGrHrns r:rrzConsoleClient.update_cache�s+�����!�!��0E�0E�04�0B�0B�	"�	Dr<c�h�|jj||j|j��y)zUpgrade systemr>N)r�upgrade_systemrGrH)r6�	safe_modes  r:rtzConsoleClient.upgrade_system�s.�����#�#�I�26�2G�2G�26�2D�2D�	$�	Fr<c�j�|jj|||j|j��y)zReconfigure packages.r>N)r�reconfigurerGrH)r6�packages�prioritys   r:rwzConsoleClient.reconfigure�s0����� � ��8�/3�/D�/D�/3�/A�/A�	!�	Cr<c�f�|jj|j|j��y)zClean archives.r>N)r�cleanrGrHrns r:r{zConsoleClient.clean�s*��������)>�)>�)-�);�);�	�	=r<c�X�	|jj�y#t$rYywxYw)z%Start the console client application.N)r5�run�KeyboardInterruptrns r:r}zConsoleClient.run�s'��	��J�J�N�N��� �	��	�s��	)�)c��|jD]}tj|��||_g|_|jj	|jd|j��|jj	|jd|j��|jj	|jd|j��|jj	|jd|j��|jj	|jd|j��|jj	|jd|j��|jr.|jtj|j ��|j#|j$�y)zMonitor the given transactionzterminal-attached-changedzstatus-changedzstatus-details-changedzprogress-changedzprogress-details-changed�finishedN)rr	�
source_remover3�append�connect�_on_terminal_attached�
_on_status�_on_status_details�_on_progress�_on_progress_details�_on_exitr)�set_terminal�os�ttynamer�set_allow_unauthenticatedr+)r6�transaction�handlers   r:�_set_transactionzConsoleClient._set_transaction�sl���}�}�	(�G����w�'�	(�'�����
��
�
���[�0�0�1L�15�1K�1K�M�	N��
�
���[�0�0�1A�15���B�	C��
�
���[�0�0�1I�15�1H�1H�J�	K��
�
���[�0�0�1C�15�1B�1B�D�	E��
�
���[�0�0�1K�15�1J�1J�L�	M��
�
���[�0�0��T�]�]�K�L�����$�$�R�Z�Z��
�
�%>�?��-�-�d�.I�.I�Jr<c��|j�|jr^dt|jdz
|jdz
t	j
|�tfz}tjj|�|tjk(retd��dt	j|j��dt	j|j��d|j��}t!|�|j"j%�y)z.Callback for the exit state of the transactionz[+] 100%% %s %-*.*s%s
�	�ERRORz: �
�

N)�_detachr,�	ANSI_BOLDr#r
�get_exit_string_from_enum�
ANSI_RESET�sys�stderr�write�EXIT_FAILED�_�get_error_string_from_enum�
error_code�get_error_description_from_enum�
error_detailsr]r5r^)r6�trans�enum�output�msgs     r:r�zConsoleClient._on_exit�s���	
�������.���$�$�q�(��$�$�q�(��/�/��5��2��F�
�J�J���V�$��5�$�$�$��'�
��0�0��1A�1A�B��5�5�e�6F�6F�G��#�#�	%�C�

�#�J��
�
���r<c��|jr6|r4|js(|j�d|_|j	�y|sd|_|j�yy)zXCallback for the terminal-attachabed-changed signal of the
        transaction.
        FTN)r)r$�_clear_progressr,�_attachr�)r6r��attacheds   r:r�z#ConsoleClient._on_terminal_attached�sK�����8�D�N�N�� � �"�"'�D���L�L�N��"&�D���L�L�N�r<c�X�tj|�|_|j�y)z1Callback for the Status signal of the transactionN)r
�get_status_string_from_enumr'�_update_progress)r6r��statuss   r:r�zConsoleClient._on_status�s ���8�8��@������r<c�2�||_|j�y)z9Callback for the StatusDetails signal of the transaction.N)r-r�)r6r��texts   r:r�z ConsoleClient._on_status_details�s��#������r<c�Z�|rS|rQtd�tj|�tj|�tj|�d�z|_nF|r=td�tj|�tj|�d�z|_nd|_|j	�y)z;Callback for the ProgressDetails signal of the transaction.z0Downloaded %(cur)sB of %(total)sB at %(rate)sB/s)�cur�total�ratez!Downloaded %(cur)sB of %(total)sB)r�r�rN)r�r�get_size_stringr.r�)r6r��
items_done�items_total�
bytes_done�bytes_total�speed�etas        r:r�z"ConsoleClient._on_progress_details�s����5��D�E��.�.�z�:� �0�0��=��/�/��6�8�8�
�"�
��5�6��.�.�z�:� �0�0��=�?�?�
�"�
&(�D�"����r<c�2�||_|j�y)z3Callback for the Progress signal of the transactionN)r(r�)r6r��percents   r:r�zConsoleClient._on_progresss����
����r<c��|jsyt|jztz}|jr|d|jzz
}|j
r|d|j
zz
}|jdz
}|jdztj�krC|jdzt|j�z|_	tj�|_|j|j}|jdkDrd}n|j}tjjd	|zd
|zzd|||fzzdz�y)
zUpdate the progress bar.N� z (%s)r�g�������?r�d�---�[%s] �%3.3s%% �%-*.*s�
)r,r�r'r�r-r.r#r2r1r0�lenr/r(r�r�r�)r6r��
text_width�spinnerr�s     r:r�zConsoleClient._update_progresss'���"�"���4�<�<�'�*�4������C�$�.�.�.�.�D��!�!��G�d�4�4�4�4�D��)�)�A�-�
����c�!�D�I�I�K�/�"�n�n�q�0�C��8K�8K�4L�L�D�N�#�y�y�{�D���%�%�d�n�n�5���=�=�3���G��m�m�G��
�
����7�*�#�g�-�.�!�Z��T�$B�B�C�EI�J�	Kr<Nc�t�t|ztz}|jdz
}|r]|jdzt	|j
�z|_t
j�|_|j
|j}nd}|�d}tjjd|zd|zzd|||fzzdz�y	)
z5Update the progress bar with a custom status message.r�r�+r�r�r�r�r�T)r�r�r#r0r�r/r1r2r�r�r�)r6r�r��spinr�r�r�s       r:�_update_custom_progressz%ConsoleClient._update_custom_progress#s����3���+���)�)�A�-�
��"�n�n�q�0�C��8K�8K�4L�L�D�N�#�y�y�{�D���)�)�$�.�.�9�G��G��?��G��
�
����7�*�#�g�-�.�!�Z��T�$B�B�C�EI�J�	K�r<c�\�|j� tj|j�yy)z7Stop the spinner which shows non trans status messages.N)�_progress_idr	r�rns r:�_stop_custom_progressz#ConsoleClient._stop_custom_progress6s'�����(����t�0�0�1�)r<c�v�tjjd|j|jdfz�y)z%Clear progress information on stderr.z%-*.*s
r�N)r�r�r�r#rns r:r�zConsoleClient._clear_progress;s4���
�
����t�';�';�'+�';�';�'*�',�,�	-r<c���|jrB|jjtjk7r|jj	�y|j
j
�y)zCallback for a cancel signal.N)r3r�r
�STATUS_SETTING_UP�cancelr5r^�r6�signum�frames   r:rzConsoleClient._on_cancel_signalAsE������!�!�(�(�E�,C�,C�C����$�$�&��J�J�O�O�r<c�N�|j�|_|j�y)z%Callback for a changed terminal size.N)r"r#r�r�s   r:r!z!ConsoleClient._on_terminal_resizeIs��#�7�7�9������r<c���|jD]}tj|��|jr>t	j
tjtj|j�yy)z.Dettach the controlling terminal to aptdaemon.N)	r$r	r�r%�tty�	tcsetattrr�STDIN_FILENO�	TCSAFLUSH)r6�wids  r:r�zConsoleClient._detachNsT���>�>�	$�C����s�#�	$�����M�M�#�*�*�C�M�M��,�,�
.�r<c	���	tjtj�|_tj
tj�tjtjztjz}|jjtjtjtj||j|j ��|jjtj|j tj||jtj"��y#tj$rd|_Y��wxYw)zSAttach the controlling terminal to aptdaemon.
        Based on pty.spwan()
        N)r��	tcgetattrrr�r%�setraw�errorr	�IO_IN�IO_ERR�IO_HUPr$r��io_add_watch�PRIORITY_HIGH_IDLE�_copy_ior�
STDOUT_FILENO)r6�flagss  r:r�zConsoleClient._attachVs���	&�!$���s�/?�/?�!@�D���J�J�s�'�'�(��
�
�T�[�[�(�4�;�;�6����������c�.�.�"�5�5�u�"�m�m�T�^�^�
=�	>�	
��������d�n�n�d�.E�.E�#�T�]�]�C�4E�4E�
G�	H���y�y�	&�!%�D��	&�s�AE�E"�!E"c��|tjk(r/tj|d�}|rtj||�ytj
|�y)z(Callback to copy data between terminals.iTF)r	r�r��readr��close)r6�source�	condition�target�datas     r:r�zConsoleClient._copy_iohsA����
�
�"��7�7�6�4�(�D�������&��
�����r<c��	tjdtjtjt
jd��dS#t$rYywxYw)z7Return the witdh in characters of the current terminal.�hzr�P)�array�fcntl�ioctlr�r��termios�
TIOCGWINSZ�IOErrorrns r:r"z!ConsoleClient._get_terminal_widthrsP��	��;�;�s�E�K�K��
�
�G�<N�<N�08�%:�;�;<�>�
>���	��	�s�A	A�	A�Ac��|j�	|�#tj$r-td��dtd��d|j	���}YnTt
j$r2td��d|j��d|j	���}Ynt|�}YnxYw|jj�tj|�y)zError callback.zERROR:r�z+You are not allowed to perform this action.r�z - N)
r�r�PolicyKitErrorr��get_dbus_message�dbus�
DBusException�
get_dbus_name�strr5r^r��exit)r6r�r�s   r:rHzConsoleClient._on_exception{s�������	��K���$�$�	=�#$�X�;�#$�&4�$5�#(�#9�#9�#;�=�C��!�!�	<�"#�H�+�u�/B�/B�/D�"'�"8�"8�":�<�C�	��e�*�C���
�
��������
s��=B$�AB$�B$c����j|��j��jjtj
tjtjtjtjfvrZtjd�jtd���_�jj�j �fd���ytjd�jtd���_�jj#�j$�j ��y)z,Callback which runs a requested transaction.��Queuingc�$���j�Sr\�r�rns�r:�<lambda>z0ConsoleClient._run_transaction.<locals>.<lambda>�s���d�&@�&@�&B�r<�r@r?zResolving dependenciesr>N)r�r�r3�roler
�ROLE_UPDATE_CACHE�ROLE_ADD_VENDOR_KEY_FILE�"ROLE_ADD_VENDOR_KEY_FROM_KEYSERVER�ROLE_REMOVE_VENDOR_KEY�ROLE_FIX_INCOMPLETE_INSTALLr	�timeout_addr�r�r�r}rH�simulate�
_show_changes)r6r�s` r:rGzConsoleClient._run_transaction�s
������e�$��"�"�$����!�!�e�&=�&=�&+�&D�&D�&+�&N�&N�&+�&B�&B�&+�&G�&G�	&I�I�!%� 0� 0��15�1M�1M�12�9��!?�D��
���!�!�"�0�0�B�
"�
D�
!%� 0� 0��15�1M�1M�12�3K�1L�!N�D��
���&�&�T�5G�5G�59�5G�5G�
'�
Ir<c	�:	���fd�}�j��j��jj\}}}}}}�jj\}}	}
}}}
}|j|�|j|�|j|�|j|
�|j|�|j|	�|j|
�|}|r5t
tddt|��dt|�iz�||�|r5t
tddt|��dt|�iz�||�|r5t
tddt|��dt|�iz�||�|r5t
td	d
t|��dt|�iz�||�|r5t
tddt|��dt|�iz�||�|r5t
td
dt|��dt|�iz�||��jjr>t
td�tj�jj�z��jjdkDr?t
td�tj�jj�z�nW�jjdkr>t
td�tj�jj�z��jjs"�jjs|s
|s|s|s|s|r�	trttd��}nt!td��}t%j&t)j*t(j,�|�sj|dk7ret/j0t.j2�}�j5|dd��j6j9�t;j<d�t?j@d�j4td���_!�jjE�jF�fd���y#t"$rd}Y��	wxYw)Nc�d��d}|j�|D]t}	|jdd�dd\}}�jr
|r|�d|��}n|}t	|�dzt	|�z�j
kDr|dk7r
t
|�d}|d|zz
}�v|dk7rt
|�yy#t$r|}d}Y�|wxYw)zFormat the pkgs in a nice way.r��=rrrNz %s)�sort�split�
ValueErrorr*r�r#r])�pkgsrI�pkg�name�versionr�r6s      �r:�
show_packagesz2ConsoleClient._show_changes.<locals>.show_packages�s�����D��I�I�K��
'��#�$'�I�I�c�1�$5�a��$:�M�D�'��=�=�W�(,�g�6�F�!�F���I��M�C��K�/�$�2F�2F�F�����$�K��D�����&��
'��s�{��d����"�#��D�"�G�#�s�B�
B/�.B/z8The following NEW package will be installed (%(count)s):z9The following NEW packages will be installed (%(count)s):�countz3The following package will be upgraded (%(count)s):z4The following packages will be upgraded (%(count)s):z2The following package will be REMOVED (%(count)s):z3The following packages will be REMOVED (%(count)s):z5The following package will be DOWNGRADED (%(count)s):z6The following packages will be DOWNGRADED (%(count)s):z6The following package will be reinstalled (%(count)s):z7The following packages will be reinstalled (%(count)s):z5The following package has been kept back (%(count)s):z7The following packages have been kept back (%(count)s):zNeed to get %sB of archives.rz@After this operation, %sB of additional disk space will be used.zAAfter this operation, %sB of additional disk space will be freed.zDo you want to continue [Y/n]?�nrFrrrc�$���j�Sr\rrns�r:rz-ConsoleClient._show_changes.<locals>.<lambda>s���$�"<�"<�">�r<r)$r�r�r3rx�dependencies�extendr]rr��downloadr�rr��space�PY3K�input�	raw_input�EOFError�re�match�locale�nl_langinfo�YESEXPRr
r��EXIT_CANCELLEDr�r5r^r�rr	rr�r}rH)r6r�installs�
reinstalls�removals�purges�upgrades�
downgrades�dep_installs�dep_reinstalls�dep_removals�
dep_purges�dep_upgrades�dep_downgrades�	dep_kepts�kepts�contr�s`                 r:rzConsoleClient._show_changes�sB���	�*	
�"�"�$������+�+�4�4�	��:�x����)-�):�):�)G�)G�	'��~�|�Z���I�����%�����%����������%����
�#����.�)����.�)�����8�+�+���M�	+�/6�s�8�}�-E�	F�
H�

�(�#���8�+�+���M�	+�/6�s�8�}�-E�	F�
H�

�(�#���8�+�+���M�	+�/6�s�8�}�-E�	F�
H�
�(�#���8�+�+��
�O�	-�18��Z��/I�	J�
L�

�*�%���8�+�+��
�O�	-�18��Z��/I�	J�
L�

�*�%���8�+�+���J�	(�,3�C��J�*?�	@�
B�

�%� ����%�%��!�2�3��(�(��):�):�)C�)C�D�E�
F����"�"�Q�&��!�$�%��(�(��):�):�)@�)@�A�B�
C��
�
�
$�
$�q�
(��!�%�&��(�(��):�):�)@�)@�A�B�
C�
���#�#�t�'8�'8�'A�'A��H�
�h�%��
�� ��#C�!D�E�D�$�Q�'G�%H�I�D��H�H�V�/�/����?��F��B�J��5�5�e�6J�6J�K���,�,�S�$��>��
�
���!������ �,�,�S�-1�-I�-I�-.�y�\�;���	
������,�,�>�	�	@���
���
�s�!/R�R�R)TFF)rr)NT)'�__name__�
__module__�__qualname__�__doc__r;rArNrRrVrYrcrermrprrrtrwr{r}r�r�r�r�r�r�r�r�r�r�r�rr!r�r�r�r"rHrGr�r<r:rr9s����BG��%�6F�.�.�I�D�
O�G�.�J�
D�
F�C�=�
�K�*�,
� �
 �
 �$ �
K�0�&2�
-�� �
.�H�$���$I�0w@r<rc�
�td�}ttj|��}|j	dddddtd��	�|j	dd
dddtd��	�|j	dd
dddtd��	�|j	ddddddtd���|j	ddddddtd���|j	ddddddtd���|j	dddddd td!���|j	d"d#dddd$td���|j	dd%dddd&td'���|j	dd(dd)td*��+�|j	dd,dd)td-��+�|j	dd.dd/td0��+�|j	dd1dddd2td3���|j	dd4dddtd5��6�|j	dd7dddtd8��6�|j	dd9dddd:td;���|j	dd<dddd=td>��?�|j	dd@dddAtdB��	�|j	ddCddddDtdE���|j	ddFddGtdH��+�|j	ddIddddJtdK���|j	ddLdMdddNtdO���|j	ddPddQtdR��+�|j	ddSddTdUtdV��W�|j	dXdYddZtd[��+�|j�\}}t
|j|j|j�\�}tjd]|jtd^��|_
|jr|jd_��n|j r|jdU��n�|j"r|j%��n�|j&r6|j'|j&j)�|j*��n�|j,r|j-��nt|j.r|j1��nV|j2r|j5��n8|j6r8|j6j9d`�r|j;|j6��n�|j6s<|j<s0|j>s$|j@s|jBs|jDr�|jG|j6j)�|j<j)�|j>j)�|j@j)�|jBj)�|jDj)���n|jHr'|jI|jH|jJ�n�|jLr|jO|jL�n�|jPr3|jRr'|jQ|jP|jR�nj|jTr|jU|jT�nB|jVr|jW�n%|jY�t[j\da�|j_�yb)cz'Run a command line client for aptdaemonziTo operate on more than one package put the package names in quotation marks:
aptdcon --install "foo bar")r�epilogz-cz	--refreshr�
store_true�refreshzRefresh the cache)�default�action�dest�helpz
--fix-depends�fix_dependszoTry to resolve broken dependencies. Potentially dangerous operation since it could try to remove many packages.z
--fix-install�fix_installz1Try to finish a previous incompleted installationz-iz	--install�store�stringrfzInstall the given packages)rFrGrBrHrIz--reinstallrgzReinstall the given packagesz-rz--removerhzRemove the given packagesz-pz--purgeriz7Remove the given packages including configuration filesz-uz	--upgraderjz--downgraderkzDowngrade the given packagesz--upgrade-system�safe_upgradez%Deprecated: Please use --safe-upgrade)rGrHrIz--safe-upgradez Upgrade the system in a safe wayz--full-upgrade�full_upgradez=Upgrade the system, possibly installing and removing packagesz--add-vendor-key�add_vendor_keyz"Add the vendor to the trusted onesz--add-vendor-key-from-keyserverz-Add the vendor keyid (also needs --keyserver))rFrGrBrIz--keyserverz+Use the given keyserver for looking up keysz--add-repositoryrAz*Add new repository from the given deb-linez--sources-file�sources_filezQSpecify an alternative sources.list.d file to which repositories should be added.)rGrFrBrHrIz--list-trusted-vendorsrczList trusted vendor keysz--remove-vendor-keyrVz/Remove the trusted key of the given fingerprintz--cleanr{zRemove downloaded package filesz
--reconfigurerwz]Reconfigure installed packages. Optionally the minimum priority of questions can be specifiedz
--priorityrFryz8The minimum debconf priority of question to be displayedz--hide-terminal�
hide_terminalz!Do not attach to the apt terminalz--allow-unauthenticatedr8Fz+Allow packages from unauthenticated sources)rGrHrFrIz-dz--show-detailsr9zQShow additional information about the packages. Currently only the version number)r7r8r9rzWaiting for authenticationTz.debrN)0r�r�	aptdaemon�__version__�
add_option�
parse_argsrrRr8r9r	rr�r�rNrtrOrErrrwrryr{rKrmrJrprf�endswithrYrgrhrirjrkrerArQrPrNrRrTrVrc�
print_helpr�rr})rC�parser�options�args�cons     r:rrs��
���F��)�"7�"7��
G�F�
���d�K��)�	��0�1��3����b�/�2�)�
��<�=��>�
���b�/�2�)�
��,�-��.����d�K��$�8�)��9�:��<����b�-��$�8�+��;�<��>����d�J��$�8�(��8�9��;����d�I�r�$�8�'��3�4��5����d�K��$�8�)��9�:��<����b�-��$�8�+��;�<��>����b�,�)���.�/��0����b�*�)���?�@��B����b�*�)���1�2��3����b�,�b�$�8�:J��A�B��D����b�;�R�$�8��,�-��.����b�-��$�8��$�%��&����b�,�b�$�8�:J��(�)��*����b�*�7�B�#�.��C�D��E����b�2�B�)�0J��7�8��:����b�/��$�8�:M��+�,��-����b�)�)���>�?��A����b�/�2�$�8�-��)�*��+�
���b�,�	�$�8�*��,�-��.����b�+�)���@�A��C����b�3�)�0G�#��'�(��)�
���d�,�)�	��A�B��C��'�'�)�O�W�d�
�'�*?�*?�&?�.5�.K�.K� '���1�C��'�'��S�-H�-H�()�*F�(G�I�C��������4� �	�	�	����5�!�	�������	�	�	�����+�+�1�1�3�W�5E�5E�F�	����	�	��	�	�	��"�"�$�	�	�	���� �	���W�_�_�5�5�f�=�������)�
�/�/�W�.�.�'�.�.�
�-�-�7�?�?�g�.?�.?����G�O�O�1�1�3�#�-�-�3�3�5�#�N�N�0�0�2�#�M�M�/�/�1�#�O�O�1�1�3�#�-�-�3�3�5�	7�
�	�	����7�1�1�7�3G�3G�H�	�	�	��$�$�W�%;�%;�<�	�	.�	.�7�3D�3D��)�)��1�1����	�
�	"�	"����g�7�7�8�	�	)�	)��$�$�&�����������G�G�Ir<�__main__)*r@�
__author__�__all__r�r�rr�rr*�optparserr�rr(r�r1r�rr��aptsources.sourceslistr�
gi.repositoryr	�dbus.mainloop.glibr��mainloop�glib�
DBusGMainLooprSrrr
r�chrr�r��version_info�majorr$rrr=rAr<r:�<module>rjs����*5�
�
#���� ��
�!�	�
�	���
�
�
�.����
�
��� � �� �5�������G�e�O�	�
��W�u�_�
�
������!��c@�c@�LQ�f�z���F�r<

Zerion Mini Shell 1.0