← Back
Editing: reinstall.cpython-312.pyc
� �(f] � � � d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ d dl Z d dlZ ej d� Z G d� d ej � Zy) � )�absolute_import)�unicode_literals)�commands)�OptionParser)�_N�dnfc �@ � e Zd ZdZdZ ed� Zed� � Zd� Z d� Z y)�ReinstallCommandzSA class containing methods needed by the cli to execute the reinstall command. )� reinstall�reizreinstall a packagec �p � | j ddt d� t j t d� �� y )N�packages�+zPackage to reinstall�PACKAGE)�nargs�help�action�metavar)�add_argumentr r �ParseSpecGroupFileCallback)�parsers �?/usr/lib/python3.12/site-packages/dnf/cli/commands/reinstall.py� set_argparserzReinstallCommand.set_argparser( s1 � ����J�c��:P�8Q�#/�#J�#J�$%�i�L� � 2� c �( � | j j }d|_ d|_ d|_ d|_ t j | j | j � | j j s t j | j � yy)a Verify that conditions are met so that this command can run. These include that the program is being run by the root user, that there are enabled repositories with gpg keys, and that this command is called with appropriate arguments. TN)�cli�demands�sack_activation�available_repos� resolving� root_userr �_checkGPGKey�base�opts� filenames�_checkEnabledRepo)�selfr s r � configurezReinstallCommand.configure. so � � �(�(�"�"��"&���"&��� ��� ������d�i�i����2��y�y�"�"��&�&�t�y�y�1� #r c �l � d}| j j | j j d| j j j �� D ] } | j j |� d}�" | j j | j j"