관리-도구
편집 파일: mark.cpython-36.pyc
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>