#include <SuseTagsImpl.h>
Inheritance diagram for zypp::source::susetags::SuseTagsImpl:

Public Types | |
| typedef source::susetags::SuseTagsProber | Prober |
| typedef intrusive_ptr< SuseTagsImpl > | Ptr |
| typedef intrusive_ptr< const SuseTagsImpl > | constPtr |
Public Member Functions | |
| SuseTagsImpl () | |
| Default Ctor. | |
| ~SuseTagsImpl () | |
| Dtor. | |
| 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 std::set< zypp::Resolvable::Kind > | resolvableKinds () const |
| 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. | |
| virtual void | createResolvables (Source_Ref source_r) |
| Late initialize the ResStore. | |
| virtual ResStore | createResolvablesByKind (Source_Ref source_r, zypp::Resolvable::Kind kind) |
| Provide only resolvables of a certain kind. | |
| 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 | 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) |
Private Attributes | |
| unsigned | _media_count |
| Pathname | _data_dir |
| Pathname | _media_descr_dir |
| std::string | _media_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 71 of file SuseTagsImpl.h.
|
|
Definition at line 74 of file SuseTagsImpl.h. |
|
|
Definition at line 75 of file SuseTagsImpl.h. |
|
|
Definition at line 76 of file SuseTagsImpl.h. |
|
|
Default Ctor. Just initilizes data members. Metadata retrieval is delayed untill factoryInit. Definition at line 141 of file SuseTagsImpl.cc. |
|
|
Dtor.
Definition at line 656 of file SuseTagsImpl.cc. |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 88 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 97 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 685 of file SuseTagsImpl.cc. References contentFile(). |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 670 of file SuseTagsImpl.cc. References _media_count. |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 675 of file SuseTagsImpl.cc. References _prodImpl. |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 622 of file SuseTagsImpl.cc. References metadataRoot(), MIL, and zypp::filesystem::readdir(). |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 680 of file SuseTagsImpl.cc. References _media_id. |
|
|
Definition at line 659 of file SuseTagsImpl.cc. References _data_dir. |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 505 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_cache_dir, zypp::filesystem::Pathname::empty(), and saveMetadataTo(). Referenced by factoryInit(). |
|
|
Reimplemented from zypp::source::SourceImpl. Definition at line 185 of file SuseTagsImpl.cc. References descrDir(). |
|
|
Get media verifier for the specified media.
Definition at line 664 of file SuseTagsImpl.cc. References _media_id, and _media_vendor. |
|
|
Stream output.
Reimplemented from zypp::source::SourceImpl. Definition at line 974 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::dumpOn(). |
|
|
Definition at line 489 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 551 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 572 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(). |
|
|
Late initialize the ResStore.
Reimplemented from zypp::source::SourceImpl. Definition at line 614 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::_store, providePackages(), providePatterns(), provideProducts(), and provideSelections(). |
|
||||||||||||
|
Provide only resolvables of a certain kind.
Definition at line 636 of file SuseTagsImpl.cc. References providePackages(), providePatterns(), provideProducts(), and provideSelections(). |
|
|
Definition at line 144 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 149 of file SuseTagsImpl.cc. References metadataRoot(). Referenced by factoryInit(), and timestamp(). |
|
|
Definition at line 159 of file SuseTagsImpl.cc. References metadataRoot(). |
|
|
Definition at line 154 of file SuseTagsImpl.cc. References metadataRoot(). |
|
|
Definition at line 169 of file SuseTagsImpl.cc. References metadataRoot(). Referenced by providePackages(), providePatterns(), provideSelections(), and resolvableKinds(). |
|
|
Definition at line 164 of file SuseTagsImpl.cc. References metadataRoot(). Referenced by factoryInit(). |
|
|
Definition at line 521 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 179 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 174 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 690 of file SuseTagsImpl.cc. References _data_dir, _media_descr_dir, zypp::source::SourceImpl::_path, _prodImpl, _product, zypp::SourceFactory::createFrom(), DBG, MIL, zypp::Exception::msg(), zypp::source::susetags::ProductMetadataParser::parse(), zypp::source::susetags::ProductMetadataParser::prodImpl, zypp::source::susetags::ProductMetadataParser::result, and ZYPP_THROW. Referenced by factoryInit(). |
|
|
reads a media file and installs a media verifier if available
Definition at line 245 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 203 of file SuseTagsImpl.cc. References zypp::source::SourceImpl::alias(), cacheExists(), zypp::CheckSum::checksum(), zypp::CheckSum::empty(), MIL, zypp::source::susetags::read_line_from_file(), zypp::filesystem::sha1sum(), and zypp::source::SourceImpl::tryToProvideFile(). Referenced by saveMetadataTo(). |
|
||||||||||||
|
Definition at line 716 of file SuseTagsImpl.cc. References _product, zypp::ResStore::insert(), and MIL. Referenced by createResolvables(), and createResolvablesByKind(). |
|
||||||||||||
|
Definition at line 722 of file SuseTagsImpl.cc. References _, _pkg_translations, DBG, descrDir(), zypp::source::SourceReport::INVALID, MIL, zypp::Exception::msg(), zypp::source::SourceReport::NO_ERROR, zypp::source::susetags::parsePackages(), zypp::filesystem::readdir(), report, zypp::source::SourceImpl::selfSourceRef(), and ZYPP_THROW. Referenced by createResolvables(), and createResolvablesByKind(). |
|
||||||||||||
|
Definition at line 867 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 createResolvablesByKind(). |
|
||||||||||||
|
|
|
||||||||||||
|
Definition at line 919 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 createResolvablesByKind(). |
|
|
Definition at line 178 of file SuseTagsImpl.h. Referenced by numberOfMedia(). |
|
|
Definition at line 183 of file SuseTagsImpl.h. Referenced by dataDir(), readContentFile(), and sourceDir(). |
|
|
Definition at line 188 of file SuseTagsImpl.h. Referenced by mediaDescrDir(), and readContentFile(). |
|
|
Definition at line 190 of file SuseTagsImpl.h. Referenced by verifier(). |
|
|
Definition at line 191 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 196 of file SuseTagsImpl.h. Referenced by readContentFile(), and vendor(). |
|
|
Definition at line 197 of file SuseTagsImpl.h. Referenced by provideProducts(), and readContentFile(). |
|
|
Definition at line 201 of file SuseTagsImpl.h. |
|
|
Definition at line 203 of file SuseTagsImpl.h. |
|
|
Definition at line 205 of file SuseTagsImpl.h. |
|
|
Definition at line 208 of file SuseTagsImpl.h. Referenced by providePackages(). |
1.4.6