Server IP : 23.254.227.96 / Your IP : 216.73.216.7 Web Server : Apache/2.4.62 (Unix) OpenSSL/1.1.1k System : Linux hwsrv-1277026.hostwindsdns.com 4.18.0-477.13.1.el8_8.x86_64 #1 SMP Tue May 30 14:53:41 EDT 2023 x86_64 User : viralblo ( 1001) PHP Version : 8.1.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /usr/lib/python3.6/site-packages/dnf/cli/commands/__pycache__/ |
Upload File : |
3 �ft` � @ sR d dl mZ d dl mZ d dlmZ d dlmZ d dlmZ G dd� dej �Z dS ) � )�absolute_import)�unicode_literals)�commands)�OptionParser)�_c @ s8 e Zd ZdZdZed�Zedd� �Zdd� Z d d � Z dS ) �DowngradeCommandzWA class containing methods needed by the cli to execute the downgrade command. � downgrade�dgzDowngrade a packagec C s | j ddtd�tjd� d S )N�package�*zPackage to downgrade)�nargs�help�action)�add_argumentr r ZParseSpecGroupFileCallback)�parser� r �/usr/lib/python3.6/downgrade.py� set_argparser$ s zDowngradeCommand.set_argparserc C sH | j j}d|_d|_d|_d|_tj| j| j � | j j sDtj| j� d S )NT)Zcli�demandsZsack_activationZavailable_reposZ resolvingZ root_userr Z_checkGPGKey�base�opts� filenamesZ_checkEnabledRepo)�selfr r r r � configure) s zDowngradeCommand.configurec C sJ | j j| jjd| j jjd�}| j j| jjdd� | jjD � || j j j d�S )NF)�strict�progressc S s g | ]}d | �qS )�@r )�.0�xr r r � <listcomp>8 s z(DowngradeCommand.run.<locals>.<listcomp>)Zspecs� file_pkgsr )r Zadd_remote_rpmsr r �outputr Z downgradePkgsZ pkg_specsZ grp_specsZconfr )r r r r r �run4 s zDowngradeCommand.runN)r r )�__name__� __module__�__qualname__�__doc__�aliasesr Zsummary�staticmethodr r r"