libzypp 17.38.3
downloader.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
9
10#include "downloader.h"
11#include <zypp-core/ng/pipelines/MTry>
12#include <zypp-core/ng/base/Signals>
13#include <zypp-core/ng/pipelines/Transform>
15
16#include <zypp/KeyRing.h>
17#include <zypp/ng/Context>
19
21
22namespace zyppng::repo {
23
24
25 using namespace zyppng::operators;
26
27
29 : CacheProviderContext( typename CacheProviderContext::private_constr_t{}, std::move(zyppContext), destDir )
30 , _repoinfo(info)
31 {}
32
34
36
38
39 std::vector<zypp::ManagedFile> &DownloadContext::files() { return _files; }
40
41 const std::optional<typename DownloadContext::PluginRepoverification> &DownloadContext::pluginRepoverification() const
42 { return _pluginRepoverification; }
43
45 { _deltaDir = newDeltaDir; }
46}
Interface of repomd.xml file reader.
What is known about a repository.
Definition RepoInfo.h:72
const zypp::Pathname & destDir() const
Definition downloadwf.cc:38
const ContextRef & zyppContext() const
Definition downloadwf.cc:31
DownloadContext(ContextRef zyppContext, const zypp::RepoInfo &info, const zypp::Pathname &destDir)
Definition downloader.cc:28
std::vector< zypp::ManagedFile > _files
Files downloaded.
Definition downloader.h:62
const zypp::Pathname & deltaDir() const
Definition downloader.cc:35
const std::optional< PluginRepoverification > & pluginRepoverification() const
Definition downloader.cc:41
void setDeltaDir(const zypp::Pathname &newDeltaDir)
Definition downloader.cc:44
const zypp::RepoInfo & repoInfo() const
Definition downloader.cc:33
std::vector< zypp::ManagedFile > & files()
Definition downloader.cc:39
std::optional< PluginRepoverification > _pluginRepoverification
Definition downloader.h:63
Definition ansi.h:855