libzypp 17.37.17
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>
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
25namespace zyppng::repo {
26
27
28 using namespace zyppng::operators;
29
30 template <class ContextRefType>
35
36 template <class ContextRefType>
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
58 template class DownloadContext<ContextRef>;
59}
Interface of repomd.xml file reader.
What is known about a repository.
Definition RepoInfo.h:72
const zypp::Pathname & destDir() const
Definition downloadwf.cc:42
const ContextRefType & zyppContext() const
Definition downloadwf.cc:35
std::optional< PluginRepoverification > _pluginRepoverification
Definition downloader.h:66
const zypp::RepoInfo & repoInfo() const
Definition downloader.cc:37
const std::optional< PluginRepoverification > & pluginRepoverification() const
Definition downloader.cc:49
void setDeltaDir(const zypp::Pathname &newDeltaDir)
Definition downloader.cc:53
std::vector< zypp::ManagedFile > & files()
Definition downloader.cc:46
const zypp::Pathname & deltaDir() const
Definition downloader.cc:40
DownloadContext(ContextRefType zyppContext, const zypp::RepoInfo &info, const zypp::Pathname &destDir)
Definition downloader.cc:31
std::vector< zypp::ManagedFile > _files
Files downloaded.
Definition downloader.h:65
Definition Arch.h:364