libzypp  17.32.5
downloader.cc
Go to the documentation of this file.
1 /*---------------------------------------------------------------------\
2 | ____ _ __ __ ___ |
3 | |__ / \ / / . \ . \ |
4 | / / \ V /| _/ _/ |
5 | / /__ | | | | | | |
6 | /_____||_| |_| |_| |
7 | |
8 \---------------------------------------------------------------------*/
9 
10 #include "downloader.h"
12 #include <zypp-core/zyppng/pipelines/MTry>
13 #include <zypp-core/zyppng/base/Signals>
14 #include <zypp-core/zyppng/pipelines/Wait>
15 #include <zypp-core/zyppng/pipelines/Transform>
16 #include <zypp-core/fs/PathInfo.h>
17 
18 #include <zypp/KeyRing.h>
19 #include <zypp/ng/Context>
20 #include <zypp-media/ng/Provide>
21 #include <zypp-media/ng/ProvideSpec>
22 
24 
25 namespace zyppng::repo {
26 
27 
28  using namespace zyppng::operators;
29 
30  template <class ContextRefType>
32  : CacheProviderContext<ContextRefType>( typename CacheProviderContext<ContextRefType>::private_constr_t{}, std::move(zyppContext), destDir )
33  , _repoinfo(info)
34  {}
35 
36  template <class ContextRefType>
37  const zypp::RepoInfo &DownloadContext<ContextRefType>::repoInfo() const { return _repoinfo; }
38 
39  template <class ContextRefType>
41 
42  template<class ContextRefType>
44 
45  template<class ContextRefType>
46  std::vector<zypp::ManagedFile> &DownloadContext<ContextRefType>::files() { return _files; }
47 
48  template<class ContextRefType>
49  const std::optional<typename DownloadContext<ContextRefType>::PluginRepoverification> &DownloadContext<ContextRefType>::pluginRepoverification() const
50  { return _pluginRepoverification; }
51 
52  template<class ContextRefType>
54  { _deltaDir = newDeltaDir; }
55 
56  // explicitely intantiate the template types we want to work with
57  template class DownloadContext<SyncContextRef>;
58  template class DownloadContext<ContextRef>;
59 }
void setDeltaDir(const zypp::Pathname &newDeltaDir)
Definition: downloader.cc:53
const std::optional< PluginRepoverification > & pluginRepoverification() const
Definition: downloader.cc:49
const zypp::RepoInfo & repoInfo() const
Definition: downloader.cc:37
What is known about a repository.
Definition: RepoInfo.h:71
std::vector< zypp::ManagedFile > & files()
Definition: downloader.cc:46
const zypp::Pathname & deltaDir() const
Definition: downloader.cc:40
Interface of repomd.xml file reader.
DownloadContext(ContextRefType zyppContext, const zypp::RepoInfo &info, const zypp::Pathname &destDir)
Definition: downloader.cc:31