← Back
Editing: module.cpython-312.opt-1.pyc
� �j�B � � � d dl mZ d dlmZmZ d dlmZ d dlmZ d dl m Z d dl Zd dlZd dl Z d dlZd dlZd dlZd dlZ G d� dej$ � Zy) � )�print_function)�commands�CliError)�_)�NoModuleException)�loggerNc � � � e Zd Z G d� dej � Z G d� de� Z G d� de� Z G d� de� Z G d � d e� Z G d� de� Z G d � de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Z G d� de� Zeeee e eee eeehZehZdZ ed� Z� fd�Zd� Zd� Zd� Zd� Z� xZS ) � ModuleCommandc �* � � e Zd Z� fd�Zd� Zd� Z� xZS )�ModuleCommand.SubCommandc � �� t t j | � |� t j j j | j � | _ y �N) �superr � SubCommand�__init__�dnf�module�module_base� ModuleBase�base)�self�cli� __class__s ��</usr/lib/python3.12/site-packages/dnf/cli/commands/module.pyr z!ModuleCommand.SubCommand.__init__( s9 �� ��-�*�*�D�:�3�?�"�z�z�5�5�@�@����K�D�� c �N � t � }| j j D �] }| j j |� \ }}|��%|j r|j nd}|j r|j nd}|j r|j dk7 s|j r-t j t d� j |� � |j r|j nd}| j j j! ||dd|� }|j# |� �� |S )N� ���zjOnly module name, stream, architecture or profile is used. Ignoring unneeded information in argument: '{}')�set�opts�module_specr �_get_modules�name�stream�version�contextr �infor �format�archr �_moduleContainer�query�update) r �modules_from_specsr! �__�nsvcapr# r$ r) �moduless r �#_get_modules_from_name_stream_specsz<ModuleCommand.SubCommand._get_modules_from_name_stream_specs, s� � �!$���#�y�y�4�4��!�-�-�:�:�;�G� ��F��>��&,�k�k�v�{�{�r��*0�-�-����R���N�N�v�~�~��';�����K�K�� #T� !U�U[�U[�#�V%�&� '-�k�k�v�{�{�r���)�)�4�4�:�:�4���R�QU�V��"�)�)�'�2� 5� &�%r c � � t � }t � }|D ]L }||vs�| j j j |� s�.|j |j � � �N |D ]e }t j |� }|j t j g�� D ]* }|j s�|j |j � �, �g ||fS )N)�forms)r r r* �isModuleActiver, �getArtifacts�hawkey�Subject�get_nevra_possibilities� FORM_NEVRAr# �add) r �use_modules�skip_modules� artifacts� pkg_namesr �artifact�subj� nevra_objs r �_get_module_artifact_namesz3ModuleCommand.SubCommand._get_module_artifact_names>