a
!c @ s d dl mZ d dl mZ d dlZd dlZd dlZd dlZd dlZd dl Z d dl
mZ d dlm
Z
edZG dd dejZd d
Zdd Zd
d ZdS ) )absolute_import)unicode_literalsN)
basestring)_dnfc s0 e Zd Z fddZd ddZd
ddZ ZS )Sackc s t t| j|i | d S )N)superr __init__)selfargskwargs __class__ ,/usr/lib/python3.9/site-packages/dnf/sack.pyr % s z
Sack.__init__Nr c C s8 |r
|| _ || _|d ur4|| _|du r4ttd d S )NFznallow_vendor_change is disabled. This option is currently not supported for downgrade and distro-sync commands)installonlyinstallonly_limitallow_vendor_changeloggerZwarningr )r
r r r r r r
_configure( s zSack._configurec C s t j| |S )z'Factory function returning a DNF Query.)r queryZQuery)r
flagsr r r r 1 s z
Sack.query)Nr N)r )__name__
__module____qualname__r r r
__classcell__r r r
r r " s
r c
C sT | j j}tj| ttjj| | j jd || j j t
j| j j
tjj| j jdkdS )Narch )ZpkgclsZ
pkginitvalr cachedirZrootdirZlogfileZlogdebug)Zconfr r utilZ
ensure_dirr packageZPackageZ
substitutionsZinstallrootospathjoinZlogdirconstZ
LOG_HAWKEYZlogfilelevel)baser r r r _build_sack7 s
r&