Server IP : 192.158.238.246 / Your IP : 18.118.37.224 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF 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"