HEX
Server: Apache
System: Linux a16-asgard6.hospedagemuolhost.com.br 5.14.0-570.52.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Oct 15 06:39:08 EDT 2025 x86_64
User: maoristu4c3dbd03 (1436)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: //usr/lib64/python3.9/site-packages/subscription_manager/api/__pycache__/repos.cpython-39.pyc
a

X�ZhD
�@sPddlZddlmZddlmZddlmZmZedd��Z	dd�Z
dd	�ZdS)
�N)�request_injection)�RepoActionInvoker�YumRepoFilecst�}|��}g}|D]$�t�fdd�|D��}|�|�qt|�dkrLdSt�tj�}t�tj�}t�tj	�}|�
�r�|���d�r҇fdd�|D�}	|��}
|
�
|j|	�}t�tj�}||_|��|��n<|D]}�|d<q�t�}
|
��|D]}|
�|�q�|
��t|�S)Ncsg|]}t�|j��r|�qS�)�fnmatch�id��.0�repo)�rr�D/usr/lib64/python3.9/site-packages/subscription_manager/api/repos.py�
<listcomp>�z4_set_enable_for_yum_repositories.<locals>.<listcomp>rZcontent_overridescsg|]}|jd�d��qS)�enabled)ZcontentLabel�name�value)rr)�settingrrr
'sr)rZ	get_repos�set�extend�len�injZrequireZOVERRIDE_STATUS_CACHEZIDENTITYZCP_PROVIDERZis_validZget_consumer_auth_cpZsupports_resourceZsetContentOverridesZuuidZ
server_statusZwrite_cache�updater�read�write)r�repo_idsZinvokerZreposZrepos_to_change�matches�cache�identityZcp_providerZ	overridesZcp�resultsr
Z	repo_filer)rrr� _set_enable_for_yum_repositoriess:
�

rcGstdg|�R�S)z|Enable a Yum repo by repoid.  Wildcards are honored.  Any matching repos are
    enabled *even if they are already enabled*.�1�r�rrrr�enable_yum_repositoriesAsr#cGstdg|�R�S)z~Disable a Yum repo by repoid.  Wildcards are honored.  Any matching repos are
    disabled *even if they are already enabled*.�0r!r"rrr�disable_yum_repositoriesGsr%)rZsubscription_manager.injectionZ	injectionrZsubscription_manager.apirZsubscription_manager.repolibrrrr#r%rrrr�<module>s
,