%PDF- %PDF-
Mini Shell

Mini Shell

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

�

�+fv��T�ddlmZddlZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZGd�de�Z
Gd�de�Zd	\ZZZZGd
�d�ZGd�d
e�Zdej,vrej,ddk7rdZndZdd�dd�Zedk(r�ed��e�Zej7ed�ej9�ej;d�Zej?d�Z ejC�e"ejF�e"ejH�e"e�e"e �yy)�)�annotationsN)�
TracebackType)�IO�Protocolc��eZdZdd�Zy)�Commandc��y�N�)�self�paramss  �)/usr/lib/python3/dist-packages/debconf.py�__call__zCommand.__call__'s���N)r
�	str | int�return�str)�__name__�
__module__�__qualname__rrrrrr&s��rrc��eZdZy)�DebconfErrorN)rrrrrrrr+s��rr)�low�medium�high�criticalc�V�eZdZUdZded<ded<ded<ded<ded<ded<ded	<ded
<ded<ded<ded
<ded<ded<ded<ded<ded<ded<ded<ded<ded<				d"									d#d�Zd$d�Zd%d�Zd&d�Zd'd�Z	d(d�Z
d)d�Zd*d�Zd+d �Z
								d,d!�Zy)-�DebconfaTA class that speaks the debconf protocol.

    The simplest way to use this is as a context manager:

        import debconf

        with debconf.Debconf(run_frontend=True) as db:
            print(db.get('debconf/frontend'))

    Note that this will send the STOP command on exiting the context
    manager, so you shouldn't expect to be able to use the same frontend
    again after this.  If you need to do that, then you should instantiate
    the class directly instead:

        import debconf

        db = debconf.Debconf(run_frontend=True)
        print(db.get('debconf/frontend'))
    r�
beginblock�capb�endblock�exist�fset�get�go�info�input�progress�purge�register�reset�set�settitle�subst�title�
unregister�version_�visibleNc� �dj�D]}|j|��|xstj|_|xstj
|_tjt_|r
t�|j|�y)Nz�capb set reset title input beginblock endblock go get register unregister subst fset fget visible purge metaget exist version_ settitle info progress data)
�split�
setCommand�sys�stdin�read�stdout�write�stderr�runFrontEnd�setUp)rr/r8r:�run_frontend�commands      r�__init__zDebconf.__init__\sk��
"��%�'�	%�G�
�O�O�G�$�
	%��%�C�I�I��	��(�c�j�j��
��Z�Z��
���M��
�
�5�rc���|jd�|_|jdddk7rtdd|jz��|j�j	�|_|r|j
|�yy)N�z2.�zwrong version: %s)r1�versionrr r4�capabilitiesr/)rr/s  rr=z
Debconf.setUpqsg���}�}�Q�'����<�<����t�#��s�$7�$�,�,�$F�G�G� �I�I�K�-�-�/�����J�J�u��rc�*���t����fd��y)Nc�0���j�g|��i|��Sr
)r?)�args�kwr?rs  ��r�<lambda>z$Debconf.setCommand.<locals>.<lambda>}s�������W� B�t� B�r� B�r)�setattr)rr?s``rr5zDebconf.setCommandys������B�	
rc���|dk(rd}|j�}|jjdj|djt	t
|����|jj
�		|jj�jd�}	d|vr|jdd�\}}n|d}}t|�}|dk(r|S|dk(rZd}tjd	|�D]=}	|	j!d
�r%t#|	�dk(r|	ddk(r|dz
}�0||	dz
}�9||	z
}�?|St%||��#t$r(}|jtjk(rYd}~��d}~wwxYw)
Nr1rDz{} {}
� �
��rz(\\.)�\rB�n)�upperr:�format�join�mapr�flushr8�readline�rstrip�OSError�errno�EINTRr4�int�re�
startswith�lenr)
rr?r
�resp�e�status_�data�status�	unescaped�chunks
          rr?zDebconf.command�sd���j� ��G��-�-�/���
�
����)�)�'�3�8�8�C��V�<L�3M�N�O��
�
�����
��y�y�)�)�+�2�2�4�8����$�;� �J�J�s�A�.�M�G�T� �"�T�G��W����Q�;��K�
�q�[��I����(�D�1�
'���#�#�D�)�c�%�j�A�o��Q�x�3��!�T�)�	�!�U�1�X�-�	���&�I�
'����v�t�,�,��3�
��7�7�e�k�k�)����	
�s�<)E�	E2�
E-�,E-�-E2c�n�|jjd�|jj�y)NzSTOP
)r:rW�rs r�stopzDebconf.stop�s$���
�
����"��
�
���rc�|�	|j||�y#t$r}|jddk7r�Yd}~yd}~wwxYw)NrOr�)r'rrH)r�priority�questionrbs    r�
forceInputzDebconf.forceInput�sB��	��J�J�x��*����	��v�v�a�y�B������	�s��	;�6�;c�.�|j|�}|dk(S)N�true�r$)rrn�results   r�
getBooleanzDebconf.getBoolean�s�����(�#�����rc�$�|j|�Sr
rr)rrns  r�	getStringzDebconf.getString�s���x�x��!�!rc��|Sr
rris r�	__enter__zDebconf.__enter__�s���rc�$�|j�yr
)rj)r�exc_type�	exc_value�exc_tbs    r�__exit__zDebconf.__exit__�s
��	
�	�	�r)NNNF)
r/�
str | Noner8�IO[str] | Noner:rr>�boolr�None)r/r~rr�)r?rrr�)r?rr
rrr�rr�)rmrrnrrr])rnrrr�)rnrrr)rr)rzztype[BaseException] | Noner{zBaseException | Noner|zTracebackType | Nonerr�)rrr�__doc__�__annotations__r@r=r5r?rjrortrvrxr}rrrrr2s���(��
�M����N�
�M�	�L��K�
�M��N����N����N�	�L����N��N�����
��!�#� $�"�������	�
��
�
�*�
�$-�L�� �"���,��(��%�	�

�rrc�B��eZdZ	d							d�fd�
Zdd�Zdd�Z�xZS)�DebconfCommunicatorc�,��dd|g}tj|tjtjdd��|_t�|�||jj|jj��|r�tj|jj�tjtj�tj|jj�tjtj�yy)Nzdebconf-communicatez-fnoninteractiveT)r7r9�	close_fds�universal_newlines)r/r8r:)�
subprocess�Popen�PIPE�dccomm�superr@r9r7�fcntlr8�fileno�F_SETFD�
FD_CLOEXECr:)r�ownerr/�cloexecrH�	__class__s     �rr@zDebconfCommunicator.__init__�s����&�'9�5�A��4>�4D�4D���/�/��?�?��#�5
���	����d�k�k�0�0����8I�8I�	�	
���K�K��	�	�(�(�*�E�M�M�5�;K�;K�L��K�K��
�
�)�)�+�U�]�]�E�<L�<L�M�rc�P�|j��|jj�J�|jj�J�|jjj�|jjj�|jj	�d|_yyr
)r�r7r9�close�waitris r�shutdownzDebconfCommunicator.shutdown�s����;�;�"��;�;�$�$�0�0�0��;�;�%�%�1�1�1��K�K���#�#�%��K�K���$�$�&��K�K�����D�K�
#rc�D�	|j�y#t$rYywxYwr
)r��AttributeErrorris r�__del__zDebconfCommunicator.__del__�s"��	��M�M�O���	��	�s��	�)NF)r�rr/r~r�r�rr�r�)rrrr@r�r��
__classcell__)r�s@rr�r��s:���DI�N��N�!+�N�=A�N�	
�N�$�rr��DEBCONF_USE_CDEBCONFrPz/usr/lib/cdebconf/debconfz/usr/share/debconf/frontendF)�pass_sys_executablec��dtjvrudtjd<tg}|r|jtj
�|j
tj�tjt|�yy)N�DEBIAN_HAS_FRONTEND�1�PERL_DL_NONLAZY)	�os�environ�_frontEndProgram�appendr6�
executable�extend�argv�execv)r�rHs  rr<r<�s\���B�J�J�.�(+��
�
�$�%� �!����K�K����'����C�H�H��
���!�4�(�
/r�__main__Tz&bsdmainutils/calendar_lib_is_not_emptyzless/add_mime_handlerzapt-listchanges/email-address)r�r�rr�)%�
__future__rr[r�r�r^r�r6�typesr�typingrrr�	Exceptionr�LOW�MEDIUM�HIGH�CRITICALrr�r�r�r<r�dbror%rt�lessrv�aptlcrj�printrDrErrr�<module>r�s��4#���	�	��
����h��
	�9�	�B���V�T�8�Q�Q�h!�'�!�J�b�j�j�(�
�
�
�)�*�b�0�2��4��05�)��z���D�)�	��B��M�M�(�D�E��E�E�G�
�=�=�0�1�D��L�L�8�9�E��G�G�I�	�"�*�*��	�"�/�/��	�$�K�	�%�L�r

Zerion Mini Shell 1.0