AlkantarClanX12

Your IP : 18.218.2.191


Current Path : /proc/self/root/usr/lib/python3.6/site-packages/dnf/__pycache__/
Upload File :
Current File : //proc/self/root/usr/lib/python3.6/site-packages/dnf/__pycache__/sack.cpython-36.pyc

3

�ft`��@s�ddlmZddlmZddlZddlZddlZddlZddlZddl	Z	ddl
mZddlm
Z
ejd�ZGdd�dej�Zd	d
�Zdd�Zd
d�ZdS)�)�absolute_import)�unicode_literalsN)�
basestring)�_�dnfcs0eZdZ�fdd�Zd	dd�Zd
dd�Z�ZS)�Sackcstt|�j||�dS)N)�superr�__init__)�self�args�kwargs)�	__class__��/usr/lib/python3.6/sack.pyr	%sz
Sack.__init__NrcCs8|r
||_||_|dk	r4||_|dkr4tjtd��dS)NFznallow_vendor_change is disabled. This option is currently not supported for downgrade and distro-sync commands)�installonly�installonly_limit�allow_vendor_change�loggerZwarningr)r
rrrrrr�
_configure(szSack._configurecCstjj||�S)z'Factory function returning a DNF Query.)r�queryZQuery)r
�flagsrrrr1sz
Sack.query)NrN)r)�__name__�
__module__�__qualname__r	rr�
__classcell__rr)r
rr"s
	rc	CsT|jj}tjj|�ttjj||jjd||jj	t
jj|jj
tjj�|jjdkd�S)N�arch�	)ZpkgclsZ
pkginitvalr�cachedirZrootdirZlogfileZlogdebug)Zconfrr�utilZ
ensure_dirr�packageZPackageZ
substitutionsZinstallroot�os�path�joinZlogdir�constZ
LOG_HAWKEYZlogfilelevel)�baserrrr�_build_sack7s

r%cCs2t|�}y|jdd�Wntk
r,YnX|S)NF)Zbuild_cache)r%Zload_system_repo�IOError)r$Zsackrrr�_rpmdb_sackBsr'cCst|�S)z�
    Returns a new instance of sack containing only installed packages (@System repo)
    Useful to get list of the installed RPMs after transaction.
    )r')r$rrr�
rpmdb_sackMsr()Z
__future__rrZdnf.utilrZdnf.packageZ	dnf.queryZloggingZhawkeyr Z
dnf.pycomprZdnf.i18nrZ	getLoggerrrr%r'r(rrrr�<module>s