#include <SuseTagsImpl.h>
Inheritance diagram for zypp::source::susetags::SuseTagsImpl:
Public Types | |
typedef intrusive_ptr< SuseTagsImpl > | Ptr |
typedef intrusive_ptr< const SuseTagsImpl > | constPtr |
Public Member Functions | |
SuseTagsImpl () | |
Default Ctor. | |
~SuseTagsImpl () | |
Dtor. | |
virtual void | createResolvables (Source_Ref source_r) |
Late initialize the ResStore. | |
virtual ResStore | provideResolvables (Source_Ref source_r, zypp::Resolvable::Kind kind) |
Provide only resolvables of a certain kind. | |
virtual std::string | type (void) const |
virtual Date | timestamp () const |
default implementation returns now() so the source is always reread when in doubt | |
virtual unsigned | numberOfMedia (void) const |
virtual std::string | vendor (void) const |
virtual const std::list< Pathname > | publicKeys () |
virtual std::string | unique_id (void) const |
Pathname | sourceDir (const std::string &dir) |
virtual void | storeMetadata (const Pathname &cache_dir_r) |
virtual media::MediaVerifierRef | verifier (media::MediaNr media_nr) |
Get media verifier for the specified media. | |
Static Public Member Functions | |
static std::string | typeString (void) |
Text used for identifying the type of the source. | |
Public Attributes | |
std::map< NVRA, SuseTagsPackageImplData > | _package_data |
std::map< NVRA, DefaultFalseBool > | _is_shared |
std::map< NVRA, DefaultFalseBool > | _provides_shared_data |
std::list< std::string > | _pkg_translations |
Protected Member Functions | |
virtual std::ostream & | dumpOn (std::ostream &str) const |
Stream output. | |
void | initCacheDir (const Pathname &cache_dir_r) |
bool | cacheExists () const |
Private Member Functions | |
virtual void | factoryInit () |
Ctor substitute. | |
const Pathname | metadataRoot () const |
const Pathname | contentFile () const |
const Pathname | contentFileKey () const |
const Pathname | contentFileSignature () const |
const Pathname | descrDir () const |
const Pathname | mediaFile () const |
void | saveMetadataTo (const Pathname &dir_r) |
const Pathname | mediaDescrDir () const |
description dir in original media it is not always the same so it requires the content file to be parsed | |
const Pathname | dataDir () const |
data dir in original media it is not always the same so it requires the content file to be parsed | |
void | readContentFile (const Pathname &p) |
reads content file, initializes the data and media descr dir and saves the product object but it does not add it to the store yet | |
void | checkMetadataChecksums (const Pathname &dir) const |
checks metadata against it checksums requires reading content file first | |
void | readMediaFile (const Pathname &p) |
reads a media file and installs a media verifier if available | |
TmpDir | downloadMetadata () |
bool | downloadNeeded (const Pathname &localdir) |
void | provideProducts (Source_Ref source_r, ResStore &store) |
void | providePackages (Source_Ref source_r, ResStore &store) |
void | provideSelections (Source_Ref source_r, ResStore &store) |
void | provideSelection (Source_Ref source_r, ResStore &store) |
void | providePatterns (Source_Ref source_r, ResStore &store) |
bool | verifyChecksumsMode () const |
verify media mode (use the new META tags) | |
void | verifyFile (const Pathname &path, const std::string &key) const |
Verify file checksum. | |
Private Attributes | |
unsigned | _media_count |
Pathname | _data_dir |
Pathname | _media_descr_dir |
std::string | _vendor |
std::string | _media_id |
detail::ResImplTraits< SuseTagsProductImpl >::Ptr | _prodImpl |
pointer to the product implementation we need it to access the checksums if we are in verify mode | |
Product::Ptr | _product |
Definition at line 57 of file SuseTagsImpl.h.
|
Definition at line 60 of file SuseTagsImpl.h. |
|
Definition at line 61 of file SuseTagsImpl.h. |
|
Default Ctor. Just initilizes data members. Metadata retrieval is delayed untill factoryInit. Definition at line 50 of file SuseTagsImpl.cc. |
|
Dtor.
Definition at line 463 of file SuseTagsImpl.cc. |
|
Late initialize the ResStore.
Reimplemented from zypp::source::SourceImpl. Definition at line 410 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_store, zypp::source::CreateSourceReport::NO_ERROR, providePackages(), providePatterns(), provideProducts(), provideSelections(), report, and zypp::source::SourceImpl::url(). |
|
Provide only resolvables of a certain kind.
Reimplemented from zypp::source::SourceImpl. Definition at line 437 of file SuseTagsImpl.cc. References zypp::source::CreateSourceReport::NO_ERROR, providePackages(), providePatterns(), provideProducts(), provideSelections(), report, and zypp::source::SourceImpl::url(). |
|
Reimplemented from zypp::source::SourceImpl. Definition at line 78 of file SuseTagsImpl.h. References typeString(). |
|
Text used for identifying the type of the source. Used by the SourceFactory when creating a source of a given type only. Definition at line 85 of file SuseTagsImpl.h. Referenced by type(). |
|
default implementation returns now() so the source is always reread when in doubt
Reimplemented from zypp::source::SourceImpl. Definition at line 486 of file SuseTagsImpl.cc. References contentFile(). |
|
Reimplemented from zypp::source::SourceImpl. Definition at line 477 of file SuseTagsImpl.cc. References _media_count. |
|
Reimplemented from zypp::source::SourceImpl. Definition at line 480 of file SuseTagsImpl.cc. References _vendor. |
|
Reimplemented from zypp::source::SourceImpl. Definition at line 423 of file SuseTagsImpl.cc. References metadataRoot(), MIL, and zypp::filesystem::readdir(). |
|
Reimplemented from zypp::source::SourceImpl. Definition at line 483 of file SuseTagsImpl.cc. References _media_id. |
|
Definition at line 466 of file SuseTagsImpl.cc. References _data_dir. |
|
Reimplemented from zypp::source::SourceImpl. Definition at line 297 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, zypp::filesystem::Pathname::empty(), and saveMetadataTo(). Referenced by factoryInit(). |
|
Get media verifier for the specified media.
Definition at line 471 of file SuseTagsImpl.cc. |
|
Stream output.
Reimplemented from zypp::source::SourceImpl. Definition at line 788 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::dumpOn(). |
|
Definition at line 281 of file SuseTagsImpl.cc. References zypp::filesystem::assert_dir(), zypp::filesystem::Pathname::asString(), zypp::filesystem::clean_dir(), zypp::filesystem::Pathname::dirname(), zypp::filesystem::mkdir(), and ZYPP_THROW. |
|
Definition at line 347 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, and MIL. Referenced by downloadNeeded(), and factoryInit(). |
|
Ctor substitute. Actually get the metadata.
Reimplemented from zypp::source::SourceImpl. Definition at line 373 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, zypp::source::SourceImpl::autorefresh(), cacheExists(), contentFile(), zypp::filesystem::Pathname::empty(), mediaFile(), MIL, readContentFile(), readMediaFile(), saveMetadataTo(), storeMetadata(), and zypp::source::SourceImpl::tmpMetadataDir(). |
|
Definition at line 53 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, zypp::filesystem::Pathname::empty(), and zypp::source::SourceImpl::tmpMetadataDir(). Referenced by contentFile(), contentFileKey(), contentFileSignature(), descrDir(), mediaFile(), and publicKeys(). |
|
Definition at line 58 of file SuseTagsImpl.cc. References metadataRoot(). Referenced by factoryInit(), and timestamp(). |
|
Definition at line 68 of file SuseTagsImpl.cc. References metadataRoot(). |
|
Definition at line 63 of file SuseTagsImpl.cc. References metadataRoot(). |
|
Definition at line 78 of file SuseTagsImpl.cc. References metadataRoot(). Referenced by providePackages(), providePatterns(), and provideSelections(). |
|
Definition at line 73 of file SuseTagsImpl.cc. References metadataRoot(). Referenced by factoryInit(). |
|
Definition at line 313 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::alias(), zypp::source::SourceImpl::copyLocalMetadata(), downloadMetadata(), downloadNeeded(), MIL, and ZYPP_THROW. Referenced by factoryInit(), and storeMetadata(). |
|
description dir in original media it is not always the same so it requires the content file to be parsed
Definition at line 88 of file SuseTagsImpl.cc. References _media_descr_dir. |
|
data dir in original media it is not always the same so it requires the content file to be parsed
Definition at line 83 of file SuseTagsImpl.cc. References _data_dir. |
|
reads content file, initializes the data and media descr dir and saves the product object but it does not add it to the store yet
Definition at line 491 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_autorefresh, _data_dir, _media_descr_dir, zypp::source::SourceImpl::_path, _prodImpl, _product, zypp::source::SourceImpl::_url, zypp::media::MediaAccess::canBeVolatile(), zypp::SourceFactory::createFrom(), DBG, MIL, zypp::source::susetags::ProductMetadataParser::parse(), zypp::source::susetags::ProductMetadataParser::prodImpl, zypp::source::susetags::ProductMetadataParser::result, zypp::source::susetags::ProductMetadataParser::volatile_content, and ZYPP_THROW. Referenced by factoryInit(). |
|
checks metadata against it checksums requires reading content file first
Definition at line 522 of file SuseTagsImpl.cc. References _prodImpl, and verifyFile(). |
|
reads a media file and installs a media verifier if available
Definition at line 113 of file SuseTagsImpl.cc. References zypp::filesystem::Pathname::asString(), zypp::source::SourceImpl::media_mgr, and ZYPP_THROW. Referenced by downloadMetadata(), and factoryInit(). |
|
|
Definition at line 93 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::alias(), cacheExists(), zypp::CheckSum::checksum(), zypp::CheckSum::empty(), MIL, zypp::source::SourceImpl::provideFile(), and zypp::filesystem::sha1sum(). Referenced by saveMetadataTo(). |
|
Definition at line 516 of file SuseTagsImpl.cc. References _product, zypp::ResStore::insert(), and MIL. Referenced by createResolvables(), and provideResolvables(). |
|
Definition at line 575 of file SuseTagsImpl.cc. References _pkg_translations, DBG, descrDir(), MIL, zypp::source::susetags::parsePackages(), and zypp::filesystem::readdir(). Referenced by createResolvables(), and provideResolvables(). |
|
Definition at line 687 of file SuseTagsImpl.cc. References zypp::filesystem::Pathname::asString(), DBG, descrDir(), zypp::iostr::getline(), zypp::ResStore::insert(), MIL, and zypp::source::susetags::parseSelection(). Referenced by createResolvables(), and provideResolvables(). |
|
|
|
Definition at line 736 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_store, zypp::filesystem::Pathname::asString(), DBG, descrDir(), zypp::iostr::getline(), zypp::ResStore::insert(), MIL, and zypp::source::susetags::parsePattern(). Referenced by createResolvables(), and provideResolvables(). |
|
verify media mode (use the new META tags)
Definition at line 368 of file SuseTagsImpl.cc. References _prodImpl. Referenced by verifyFile(). |
|
Verify file checksum.
Definition at line 534 of file SuseTagsImpl.cc. References _prodImpl, zypp::filesystem::Pathname::asString(), zypp::CheckSum::empty(), MIL, zypp::source::SourceImpl::path(), report, verifyChecksumsMode(), and ZYPP_THROW. Referenced by checkMetadataChecksums(). |
|
Definition at line 179 of file SuseTagsImpl.h. Referenced by numberOfMedia(). |
|
Definition at line 184 of file SuseTagsImpl.h. Referenced by dataDir(), readContentFile(), and sourceDir(). |
|
Definition at line 189 of file SuseTagsImpl.h. Referenced by mediaDescrDir(), and readContentFile(). |
|
Definition at line 191 of file SuseTagsImpl.h. Referenced by vendor(), and verifier(). |
|
Definition at line 192 of file SuseTagsImpl.h. Referenced by unique_id(), and verifier(). |
|
pointer to the product implementation we need it to access the checksums if we are in verify mode
Definition at line 197 of file SuseTagsImpl.h. Referenced by checkMetadataChecksums(), readContentFile(), verifyChecksumsMode(), and verifyFile(). |
|
Definition at line 198 of file SuseTagsImpl.h. Referenced by provideProducts(), and readContentFile(). |
|
Definition at line 202 of file SuseTagsImpl.h. |
|
Definition at line 204 of file SuseTagsImpl.h. |
|
Definition at line 206 of file SuseTagsImpl.h. |
|
Definition at line 209 of file SuseTagsImpl.h. Referenced by providePackages(). |