libzypp 17.31.23
|
Public Member Functions | |
PackageProviderImpl (RepoMediaAccess &access_r, const TPackagePtr &package_r, const PackageProviderPolicy &policy_r) | |
Ctor taking the Package to provide. | |
virtual | ~PackageProviderImpl () |
virtual ManagedFile | providePackage () const |
Provide the package. | |
virtual ManagedFile | providePackageFromCache () const |
Provide the package if it is cached. | |
virtual bool | isCached () const |
Whether the package is cached. | |
Public Member Functions inherited from zypp::repo::PackageProvider::Impl | |
Impl () | |
virtual | ~Impl () |
virtual ManagedFile | providePackage () const =0 |
Provide the package. | |
virtual ManagedFile | providePackageFromCache () const =0 |
Provide the package if it is cached. | |
virtual bool | isCached () const =0 |
Whether the package is cached. | |
Protected Types | |
typedef PackageProviderImpl< TPackage > | Base |
typedef callback::SendReport< repo::DownloadResolvableReport > | Report |
Protected Member Functions | |
ManagedFile | doProvidePackageFromCache () const |
Lookup the final rpm in cache. | |
virtual ManagedFile | doProvidePackage () const |
Actually provide the final rpm. | |
Report & | report () const |
Access to the DownloadResolvableReport. | |
bool | progressPackageDownload (int value) const |
Redirect ProvideFilePolicy package download progress to this. | |
Private Types | |
typedef TPackage::constPtr | TPackagePtr |
typedef callback::UserData | UserData |
Validate a rpm packages signature. | |||
This is the FileChecker passed down to the Fetcher to validate a provided rpm package. This builtin checker includes the workflow communicating with the user in case of a problem with the package signature.
| |||
typedef shared_ptr< void > | ScopedGuard | ||
typedef target::rpm::RpmDb | RpmDb | ||
PackageProviderPolicy | _policy | ||
TPackagePtr | _package | ||
RepoMediaAccess & | _access | ||
bool | _retry | ||
shared_ptr< Report > | _report | ||
Target_Ptr | _target | ||
void | rpmSigFileChecker (const Pathname &file_r) const | ||
RpmDb::CheckPackageResult | packageSigCheck (const Pathname &path_r, bool isMandatory_r, UserData &userData) const | ||
Actual rpm package signature check. | |||
void | resolveSignatureErrorAction (repo::DownloadResolvableReport::Action action_r) const | ||
React on signature verification error user action. | |||
void | defaultReportSignatureError (RpmDb::CheckPackageResult ret, const std::string &detail_r=std::string()) const | ||
Default signature verification error handling. | |||
ScopedGuard | newReport () const | ||
Definition at line 105 of file PackageProvider.cc.
|
private |
Definition at line 107 of file PackageProvider.cc.
|
private |
Definition at line 108 of file PackageProvider.cc.
|
protected |
Definition at line 142 of file PackageProvider.cc.
|
protected |
Definition at line 143 of file PackageProvider.cc.
|
protected |
Definition at line 282 of file PackageProvider.cc.
|
private |
Definition at line 344 of file PackageProvider.cc.
|
inline |
Ctor taking the Package to provide.
Definition at line 111 of file PackageProvider.cc.
|
inlinevirtual |
Definition at line 119 of file PackageProvider.cc.
|
virtual |
Provide the package.
The basic workflow.
Exception. |
Implements zypp::repo::PackageProvider::Impl.
Definition at line 364 of file PackageProvider.cc.
|
inlinevirtual |
Provide the package if it is cached.
Implements zypp::repo::PackageProvider::Impl.
Definition at line 129 of file PackageProvider.cc.
|
inlinevirtual |
Whether the package is cached.
Implements zypp::repo::PackageProvider::Impl.
Definition at line 138 of file PackageProvider.cc.
|
inlineprotected |
Lookup the final rpm in cache.
A cache hit will return a non empty ManagedFile and an empty one on cache miss.
Definition at line 152 of file PackageProvider.cc.
|
inlineprotectedvirtual |
Actually provide the final rpm.
Report start/problem/finish and retry loop are hadled by providePackage. Here you trigger just progress and delta/plugin callbacks as needed.
Proxy method for progressPackageDownload is provided here.
Reimplemented in zypp::repo::RpmPackageProvider.
Definition at line 169 of file PackageProvider.cc.
|
inlineprotected |
Access to the DownloadResolvableReport.
Definition at line 182 of file PackageProvider.cc.
|
inlineprotected |
Redirect ProvideFilePolicy package download progress to this.
Definition at line 186 of file PackageProvider.cc.
|
inlineprotected |
Definition at line 204 of file PackageProvider.cc.
|
inlineprotected |
Actual rpm package signature check.
Definition at line 285 of file PackageProvider.cc.
|
inlineprotected |
React on signature verification error user action.
Definition at line 312 of file PackageProvider.cc.
|
inlineprotected |
Default signature verification error handling.
Definition at line 328 of file PackageProvider.cc.
|
inlineprivate |
Definition at line 346 of file PackageProvider.cc.
|
protected |
Definition at line 339 of file PackageProvider.cc.
|
protected |
Definition at line 340 of file PackageProvider.cc.
|
protected |
Definition at line 341 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 357 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 358 of file PackageProvider.cc.
|
mutableprivate |
Definition at line 359 of file PackageProvider.cc.