libzypp  17.38.7
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>
14 #include <zypp-core/fs/PathInfo.h>
15 
16 #include <zypp/KeyRing.h>
17 #include <zypp/ng/Context>
18 #include <zypp/ng/media/provide.h>
19 
21 
22 namespace zyppng::repo {
23 
24 
25  using namespace zyppng::operators;
26 
27 
28  DownloadContext::DownloadContext(ContextRef zyppContext, const zypp::RepoInfo &info, const zypp::Pathname &destDir )
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 }
void setDeltaDir(const zypp::Pathname &newDeltaDir)
Definition: downloader.cc:44
std::vector< zypp::ManagedFile > & files()
Definition: downloader.cc:39
DownloadContext(ContextRef zyppContext, const zypp::RepoInfo &info, const zypp::Pathname &destDir)
Definition: downloader.cc:28
What is known about a repository.
Definition: RepoInfo.h:71
const zypp::RepoInfo & repoInfo() const
Definition: downloader.cc:33
const std::optional< PluginRepoverification > & pluginRepoverification() const
Definition: downloader.cc:41
const zypp::Pathname & deltaDir() const
Definition: downloader.cc:35
std::vector< zypp::ManagedFile > _files
Files downloaded.
Definition: downloader.h:62
Interface of repomd.xml file reader.
std::optional< PluginRepoverification > _pluginRepoverification
Definition: downloader.h:63