3 ft`@s ddlmZddlZddlZejjZejjZejjZejj Z ejj Z ejj Z ejj Z ejj ZeZ ejjZejjZejjZejjZejjZejjZejjZdZdZdZdZdZGdddeZGd d d eZGd d d eZGd ddeZGdddeZ ej!j"j#Z$dS))unicode_literalsNc@seZdZddZdS) KeyImportcCsdS)z+Ask the user if the key should be imported.F)selfidZuseridZ fingerprintZurlZ timestamprr/usr/lib/python3.6/callback.py_confirm5szKeyImport._confirmN)__name__ __module__ __qualname__r rrrr r4src@s(eZdZddZddZeddZdS)PayloadcCs ||_dS)N)progress)r rrrr __init__=szPayload.__init__cCsdS)z)Nice, human-readable representation. :apiNr)r rrr __str__@szPayload.__str__cCsdS)z Total size of the download. :apiNr)r rrr download_sizeDszPayload.download_sizeN)r rrrrpropertyrrrrr r:src@s.eZdZddZddZddZd dd Zd S) DownloadProgresscCsdS)zCommunicate 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 payloadZstatusmsgrrr endMszDownloadProgress.endcCsdS)Nr)r rrrr messageVszDownloadProgress.messagecCsdS)zUpdate 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 rdonerrr rYszDownloadProgress.progressrcCsdS)zStart new progress metering. :api `total_files` the number of files that will be downloaded, `total_size` total size of all files. Nr)r Z total_filesZ total_sizeZ total_drpmsrrr startcszDownloadProgress.startN)r)r rrrrrrrrrr rJs  rc@s eZdZdS)NullDownloadProgressN)r rrrrrr rnsrc@s$eZdZddZddZddZdS)DepsolvecCsdS)Nr)r rrr rsszDepsolve.startcCsdS)Nr)r Zpkgmoderrr pkg_addedvszDepsolve.pkg_addedcCsdS)Nr)r rrr rysz Depsolve.endN)r rrrr rrrrr rrsr)%Z __future__rZdnf.yum.rpmtransZdnfZdnf.transactionZ transactionZ PKG_DOWNGRADEZPKG_DOWNGRADEDZ PKG_INSTALLZ PKG_OBSOLETEZ PKG_OBSOLETEDZ PKG_REINSTALLZPKG_REINSTALLEDZ PKG_ERASEZ PKG_REMOVEZ PKG_UPGRADEZ PKG_UPGRADEDZ PKG_CLEANUPZ PKG_VERIFYZ PKG_SCRIPTLETZTRANS_PREPARATIONZ TRANS_POSTZ STATUS_OKZ STATUS_FAILEDZSTATUS_ALREADY_EXISTSZ STATUS_MIRRORZ STATUS_DRPMobjectrrrrrZyumZrpmtransZTransactionDisplayZTransactionProgressrrrr s: $