3
©ft`Œ ã @ s
d dl mZ d dlZd dlZejjZejjZejjZejj Z ejj
Z
ejjZejjZejj
ZeZ
ejjZejjZejjZejjZejjZejjZejjZdZdZdZdZdZG dd„ deƒZG d d
„ d
eƒZG dd„ deƒZG d
d„ deƒZG dd„ deƒZ ej!j"j#Z$dS )é )Úunicode_literalsNé é é é c @ s e Zd Zdd„ ZdS )Ú KeyImportc C s dS )z+Ask the user if the key should be imported.F© )ÚselfÚidZuseridZfingerprintZurlZ timestampr r ú/usr/lib/python3.6/callback.pyÚ_confirm5 s zKeyImport._confirmN)Ú__name__Ú
__module__Ú__qualname__r r r r r r 4 s r c @ s( e Zd Zdd„ Zdd„ Zedd„ ƒZdS )ÚPayloadc C s
|| _ d S )N)Úprogress)r r r r r Ú__init__= s zPayload.__init__c C s dS )z)Nice, human-readable representation. :apiNr )r r r r Ú__str__@ s zPayload.__str__c C s dS )z Total size of the download. :apiNr )r r r r Ú
download_sizeD s zPayload.download_sizeN)r
r r r r Úpropertyr r r r r r : s r c @ s. e Zd Zdd„ Zdd„ Zdd„ Zddd „Zd
S )ÚDownloadProgressc C s dS )zÚCommunicate the information that `payload` has finished downloading.
:api, `status` is a constant denoting the type of outcome, `err_msg` is an
error message in case the outcome was an error.
Nr )r ÚpayloadZstatusÚmsgr r r ÚendM s zDownloadProgress.endc C s d S )Nr )r r r r r ÚmessageV s zDownloadProgress.messagec C s dS )z¶Update the progress display. :api
`payload` is the payload this call reports progress for, `done` is how
many bytes of this payload are already downloaded.
Nr )r r Údoner r r r Y s zDownloadProgress.progressr c C s dS )z�Start new progress metering. :api
`total_files` the number of files that will be downloaded,
`total_size` total size of all files.
Nr )r Ztotal_filesZ
total_sizeZtotal_drpmsr r r Ústartc s zDownloadProgress.startN)r )r
r r r r r r r r r r r J s
r c @ s e Zd ZdS )ÚNullDownloadProgressN)r
r r r r r r r n s r c @ s$ e Zd Zdd„ Zdd„ Zdd„ ZdS )ÚDepsolvec C s d S )Nr )r r r r r s s zDepsolve.startc C s d S )Nr )r ZpkgÚmoder r r Ú pkg_addedv s zDepsolve.pkg_addedc C s d S )Nr )r r r r r y s zDepsolve.endN)r
r r r r r r r r r r r s r )%Z
__future__r Zdnf.yum.rpmtransZdnfZdnf.transactionZtransactionZ
PKG_DOWNGRADEZPKG_DOWNGRADEDZPKG_INSTALLZPKG_OBSOLETEZ
PKG_OBSOLETEDZ
PKG_REINSTALLZPKG_REINSTALLEDZ PKG_ERASEZ
PKG_REMOVEZPKG_UPGRADEZPKG_UPGRADEDZPKG_CLEANUPZ
PKG_VERIFYZ
PKG_SCRIPTLETZTRANS_PREPARATIONZ
TRANS_POSTZ STATUS_OKZ
STATUS_FAILEDZSTATUS_ALREADY_EXISTSZ
STATUS_MIRRORZSTATUS_DRPMÚobjectr r r r r ZyumZrpmtransZTransactionDisplayZTransactionProgressr r r r Ú