#include <PkgPubkeyCache.h>
Public Types | |
typedef InstSrcError | Error |
Public Member Functions | |
PkgPubkeyCache () | |
PkgPubkeyCache (const Pathname &cachedir_r) | |
~PkgPubkeyCache () | |
const Pathname & | cachedir () const |
bool | cacheDisabled () const |
bool | hasKey (const std::string &keyname_r) const |
bool | hasKey (const Pathname &keyfile_r) const |
PMError | setCachedir (const Pathname &cachedir_r) |
PMError | storeKey (const Pathname &keyfile_r) |
PMError | sync () |
PMError | cacheCopyTo (const Pathname &newcachedir_r) |
Static Public Member Functions | |
bool | isKey (const std::string &keyname_r) |
bool | isKey (const Pathname &keyfile_r) |
std::string | keyEdition (const std::string &keyname_r) |
std::string | keyEdition (const Pathname &keyfile_r) |
Private Member Functions | |
PkgPubkeyCache & | operator= (const PkgPubkeyCache &) |
PkgPubkeyCache (const PkgPubkeyCache &) | |
Private Attributes | |
Pathname | _cachedir |
Static Private Attributes | |
const std::string | _prefix |
const std::string | _ext |
Friends | |
std::ostream & | operator<< (std::ostream &str, const PkgPubkeyCache &obj) |
Store ascii armored package singning keys and import then into the RPM database on sync.
The name of a keyfile must match gpg-pubkey--.asc
, with - as it will appear in the RPM database after import.
|
default error class |
|
|
|
Constructor (no chache) |
|
Constructor (use cachedir_r) |
|
Destructor |
|
Copy cache content into newcachedir_r. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Set the cachedir to use. It will be created if necessary. |
|
Store the key denoted by keyfile_r in the cache. |
|
Take care that all stored keys are imported into the targets rpm database. |
|
|
|
|
|
|
|
|