AlkantarClanX12
Current Path : /lib/python3.6/site-packages/rhn/actions/__pycache__/ |
Current File : //lib/python3.6/site-packages/rhn/actions/__pycache__/packages.cpython-36.pyc |
3 %T�f. � @ s� d dl Z d dlZd dlZd dlZd dlmZ d dlmZ d dlmZ d dlm Z ej � ZdZddd d ddd gZ d!dd�Zd"dd�Zd#dd�Zd$dd �Zd%dd�Zd&dd �Zdd� Zd'dd �Zd(dd�Zg g dddfdd�Zdd� Zdd � ZdS ))� N)� up2dateLog)�config)�rpmUtils)�rhnPackageInfoz/var/lib/up2date/dbtimestamp�update�remove�refresh_list� fullUpdate�checkNeedUpdate�runTransaction�verifyc sj |rddi fS t | t�s"ddi fS tjd| � tddd�}|jj� j� � � fd d �| D �}t||d|d�S )z0We have been told that we should remove packagesr zno-ops for caching� z$Invalid arguments passed to functionzCalled remove_packagesTF)�load_system_repo�load_available_reposc s g | ]}t � |��qS � )�_package_tup2obj)�.0�tup)� installedr �/usr/lib/python3.6/packages.py� <listcomp>: s zremove.<locals>.<listcomp>)r � allow_erasing� cache_only) � isinstance�list�log� log_debug� _dnf_base�sack�queryr �_dnf_transaction)�package_listr �base� to_remover )r r r - s c C s� t | t�sddi fS tjd| � tddd�}|jj� j� }|jj� j� }d}g }g }�x"| D �]}t |�dk rx|j d� |\} } }}} | dkr�|dkr�|dkr�| dkr�|j| d �r�tjd | � q\|dkr�d}|j| | d�j� }t ||�}|�sd t|� }tjd|� |j |� q\x`|D ]N}|j|�}|dk�rHtjdt|� � P n|dk�rtjdt|� � P �qW |j |� q\W |�s�|�r�dddj|� ddd�f}n ddi f}|jj� |j� |S t|||d�S )z:We have been told that we should retrieve/install packagesr z$Invalid arguments passed to functionz Called updateT)r r N� � )�namezPackage %s is already installedr )r&