Server IP : 184.154.167.98 / Your IP : 3.145.43.92 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 8.2.26 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/python3.6/site-packages/dnf/cli/commands/__pycache__/ |
Upload File : |
3 �ft`� � @ sp d dl mZ d dl mZ d dlZd dlmZ d dlmZ d dl Z d dl Z d dlZejd�Z G dd� dej�ZdS ) � )�print_function)�unicode_literalsN)�_)�commands�dnfc @ sL e Zd ZdZed�Zedd� �Zdd� Zdd� Z d d � Z dd� Zd d� ZdS )�MarkCommand�markz7mark or unmark installed packages as installed by user.c C s6 | j dddddgtd�d� | j dd d td�d� d S ) Nr � Zinstall�remove�groupzhinstall: mark as installed by user remove: unmark as installed by user group: mark as installed by group)�nargs�choices�help�package�+ZPACKAGEzPackage specification)r �metavarr )�add_argumentr )�parser� r �/usr/lib/python3.6/mark.py� set_argparser) s zMarkCommand.set_argparserc C s, | j jj|tjj� tjtd�t |�� d S )Nz%s marked as user installed.) �base�history� set_reason�libdnf�transactionZTransactionItemReason_USER�logger�infor �str)�self�pkgr r r � _mark_install2 s zMarkCommand._mark_installc C s, | j jj|tjj� tjtd�t |�� d S )Nz%s unmarked as user installed.) r r r r r Z TransactionItemReason_DEPENDENCYr r r r )r r r r r �_mark_remove6 s zMarkCommand._mark_removec C s, | j jj|tjj� tjtd�t |�� d S )Nz%s marked as group installed.) r r r r r ZTransactionItemReason_GROUPr r r r )r r r r r �_mark_group: s zMarkCommand._mark_groupc C s$ | j j}d|_d|_d|_d|_d S )NTF)�cli�demandsZsack_activationZ root_userZavailable_reposZ resolving)r r% r r r � configure>