#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 |
| TmpDir | _tmp_metadata_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 58 of file SuseTagsImpl.h.
|
|
Definition at line 61 of file SuseTagsImpl.h. |
|
|
Definition at line 62 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 458 of file SuseTagsImpl.cc. |
|
|
Late initialize the ResStore.
Reimplemented from zypp::source::SourceImpl. Definition at line 405 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_store, zypp::source::CreateSourceReport::NO_ERROR, providePackages(), providePatterns(), provideProducts(), provideSelections(), and zypp::source::SourceImpl::url(). |
|
||||||||||||
|
Provide only resolvables of a certain kind.
Reimplemented from zypp::source::SourceImpl. Definition at line 432 of file SuseTagsImpl.cc. References zypp::source::CreateSourceReport::NO_ERROR, providePackages(), providePatterns(), provideProducts(), provideSelections(), and zypp::source::SourceImpl::url(). |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 79 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 86 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 481 of file SuseTagsImpl.cc. References contentFile(). |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 472 of file SuseTagsImpl.cc. References _media_count. |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 475 of file SuseTagsImpl.cc. References _vendor. |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 418 of file SuseTagsImpl.cc. References metadataRoot(), MIL, and zypp::filesystem::readdir(). |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 478 of file SuseTagsImpl.cc. References _media_id. |
|
|
Definition at line 461 of file SuseTagsImpl.cc. References _data_dir. |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 295 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, zypp::filesystem::Pathname::empty(), and saveMetadataTo(). |
|
|
Get media verifier for the specified media.
Definition at line 466 of file SuseTagsImpl.cc. |
|
|
Stream output.
Reimplemented from zypp::source::SourceImpl. Definition at line 783 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::dumpOn(). |
|
|
Definition at line 279 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 345 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 371 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, _tmp_metadata_dir, cacheExists(), contentFile(), zypp::filesystem::Pathname::empty(), mediaFile(), MIL, readContentFile(), readMediaFile(), and saveMetadataTo(). |
|
|
Definition at line 53 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, _tmp_metadata_dir, and zypp::filesystem::Pathname::empty(). 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 311 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 486 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 517 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 511 of file SuseTagsImpl.cc. References _product, zypp::ResStore::insert(), and MIL. Referenced by createResolvables(), and provideResolvables(). |
|
||||||||||||
|
Definition at line 570 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 682 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 731 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 366 of file SuseTagsImpl.cc. References _prodImpl. Referenced by verifyFile(). |
|
||||||||||||
|
Verify file checksum.
Definition at line 529 of file SuseTagsImpl.cc. References _prodImpl, zypp::filesystem::Pathname::asString(), zypp::CheckSum::empty(), MIL, zypp::source::SourceImpl::path(), verifyChecksumsMode(), and ZYPP_THROW. Referenced by checkMetadataChecksums(). |
|
|
Definition at line 180 of file SuseTagsImpl.h. Referenced by numberOfMedia(). |
|
|
Definition at line 185 of file SuseTagsImpl.h. Referenced by dataDir(), readContentFile(), and sourceDir(). |
|
|
Definition at line 190 of file SuseTagsImpl.h. Referenced by mediaDescrDir(), and readContentFile(). |
|
|
Definition at line 193 of file SuseTagsImpl.h. Referenced by factoryInit(), and metadataRoot(). |
|
|
Definition at line 195 of file SuseTagsImpl.h. Referenced by vendor(), and verifier(). |
|
|
Definition at line 196 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 201 of file SuseTagsImpl.h. Referenced by checkMetadataChecksums(), readContentFile(), verifyChecksumsMode(), and verifyFile(). |
|
|
Definition at line 202 of file SuseTagsImpl.h. Referenced by provideProducts(), and readContentFile(). |
|
|
Definition at line 206 of file SuseTagsImpl.h. |
|
|
Definition at line 208 of file SuseTagsImpl.h. |
|
|
Definition at line 210 of file SuseTagsImpl.h. |
|
|
Definition at line 213 of file SuseTagsImpl.h. Referenced by providePackages(). |
1.4.6