libzypp 8.13.6
|
Downloader for SUSETags (YaST2) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk. More...
#include <Downloader.h>
Public Member Functions | |
Downloader (const RepoInfo &info, const Pathname &delta_dir=Pathname()) | |
Constructor from the repository information. | |
void | download (MediaSetAccess &media, const Pathname &dest_dir, const ProgressData::ReceiverFnc &progress=ProgressData::ReceiverFnc()) |
Download metadata to a local directory. | |
RepoStatus | status (MediaSetAccess &media) |
Status of the remote repository. | |
void | consumeIndex (const parser::susetags::RepoIndex_Ptr &data_r) |
Content file parser consumer. | |
Private Attributes | |
parser::susetags::RepoIndex_Ptr | _repoindex |
Pathname | _delta_dir |
Downloader for SUSETags (YaST2) repositories Encapsulates all the knowledge of which files have to be downloaded to the local disk.
Definition at line 34 of file Downloader.h.
zypp::repo::susetags::Downloader::Downloader | ( | const RepoInfo & | info, |
const Pathname & | delta_dir = Pathname() |
||
) |
Constructor from the repository information.
The repository information allows more context to be given to the user when something fails.
info | Repository information |
Definition at line 30 of file Downloader.cc.
void zypp::repo::susetags::Downloader::download | ( | MediaSetAccess & | media, |
const Pathname & | dest_dir, | ||
const ProgressData::ReceiverFnc & | progress = ProgressData::ReceiverFnc() |
||
) | [virtual] |
Download metadata to a local directory.
media | Media access to the repository url |
dest_dir | Local destination directory |
progress | progress receiver |
Reimplemented from zypp::repo::Downloader.
Definition at line 54 of file Downloader.cc.
References _delta_dir, _repoindex, zypp::SignatureFileChecker::addPublicKey(), zypp::repo::RepoInfoBase::alias(), zypp::str::asString(), zypp::Locale::code(), zypp::Arch::compatibleWith(), consumeIndex(), zypp::repo::downloadMediaInfo(), zypp::str::endsWith(), zypp::Fetcher::enqueue(), zypp::Fetcher::enqueueDigested(), zypp::Locale::fallback(), for_, zypp::str::hasPrefix(), zypp::ZConfig::instance(), MIL, zypp::Locale::noCode, zypp::parser::susetags::ContentFileReader::parse(), zypp::RepoInfo::path(), zypp::repo::Downloader::repoInfo(), zypp::Fetcher::reset(), zypp::repo::susetags::search_deltafile(), zypp::OnMediaLocation::setChecksum(), zypp::SignatureFileChecker::setKeyContext(), zypp::parser::susetags::ContentFileReader::setRepoIndexConsumer(), zypp::KeyContext::setRepoInfo(), zypp::str::split(), zypp::Fetcher::start(), zypp::str::stripPrefix(), zypp::ZConfig::systemArchitecture(), WAR, and ZYPP_THROW.
RepoStatus zypp::repo::susetags::Downloader::status | ( | MediaSetAccess & | media | ) | [virtual] |
Status of the remote repository.
Reimplemented from zypp::repo::Downloader.
Definition at line 35 of file Downloader.cc.
References zypp::MediaSetAccess::provideFile(), and zypp::repo::Downloader::repoInfo().
void zypp::repo::susetags::Downloader::consumeIndex | ( | const parser::susetags::RepoIndex_Ptr & | data_r | ) |
Content file parser consumer.
Definition at line 223 of file Downloader.cc.
References _repoindex, and MIL.
Referenced by download().
parser::susetags::RepoIndex_Ptr zypp::repo::susetags::Downloader::_repoindex [private] |
Definition at line 68 of file Downloader.h.
Referenced by consumeIndex(), and download().
Pathname zypp::repo::susetags::Downloader::_delta_dir [private] |
Definition at line 69 of file Downloader.h.
Referenced by download().