%PDF- %PDF-
Mini Shell

Mini Shell

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

�

�|fL	��8�ddlmZmZd�Zd�Zd�Zd�Zd�Zd�Zy)	�)�SourceEntry�Deb822SourceEntryc��t|t�r tt|�|j��St	t|�|j��S)z, Return a shallow copy of the source entry. )�file)�
isinstancer�strrr)�origs �@/usr/lib/python3/dist-packages/softwareproperties/sourceutils.py�copy_source_entryrs7���$�)�*� ��T�����;�;��s�4�y�t�y�y�1�1�c�f�t|�}|j�D]\}}t|||��|S)z?Return a copy of the given source entry with replaced field(s).)r�items�setattr)r	�kwargs�entry�k�vs     r
�replace_source_entryr
s6���d�#�E��,�,�.����A���q�!����Lrc�f�|jjd�}|dxsdj�S)zl
    Return the pocket, or if unset return 'release'.

    This always returns the pocket in lowercase.
    �-��release)�dist�	partition�lower)�source_entry�partss  r
�get_source_entry_pocketrs2��
���'�'��,�E��!�H�!�	�(�(�*�*rc�>�|jjd�dS)z\
    Return the suite, without pocket.

    This always returns the suite in lowercase.
    rr)rr)rs r
�get_source_entry_suiter s �����&�&�s�+�A�.�.rc��t|t|j���}|D])}t|t|j���|k(s�'|cSy)a
    Return the source entry from entries that matches entry, if found.
    Otherwise return None.

    This function uses a modified equality check, i.e. it considers components
    as a set rather than a list so that different ordering does not affect the
    comparison.
    )�compsN)r�setr")�entriesr�target�es    r
�get_source_entry_from_listr'"sI��"�%�s�5�;�;�/?�
@�F�
������Q�W�W��6�&�@��H��rc��|j|jk7rydD]/}tt||��tt||��z
s�/yy)a\
    Return True if the source defined by b is already satisfied
    by the source defined by a.

    For example, if source a is:

    Types: deb
    URIs: http://archive.ubuntu.com/ubuntu
    Suites: jammy
    Components: main universe

    and source b is:

    Types: deb
    URIs: http://archive.ubuntu.com/ubuntu
    Suites: jammy
    Components: universe

    Then source a contains source b.

    But if source b was:

    Types: deb-src
    URIs: http://archive.ubuntu.com/ubuntu
    Suites: jammy
    Components: universe

    Then a does not contain b because it does not include deb-src.
    F)�typesr"�suites�urisT)�disabledr#�getattr)�a�b�attrs   r
�deb822_source_entry_containsr13sN��<	�z�z�Q�Z�Z���4����w�q�$�� �3�w�q�$�'7�#8�8���rN)	�aptsources.sourceslistrrrrrr r'r1�rr
�<module>r4s&��C�2��+�/��"%r

Zerion Mini Shell 1.0