libzypp: zypp/ng/repo/downloader.cc Source File

libzypp 17.38.6

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
20#include <zypp/parser/yum/RepomdFileReader.h>
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
33 const zypp::RepoInfo &DownloadContext::repoInfo() const { return _repoinfo; }
34
35 const zypp::filesystem::Pathname &DownloadContext::deltaDir() const { return _deltaDir; }
36
37 zypp::RepoInfo &DownloadContext::repoInfo() { return _repoinfo; }
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
44 void DownloadContext::setDeltaDir(const zypp::Pathname &newDeltaDir)
45 { _deltaDir = newDeltaDir; }
46}
KeyRing.h
RepomdFileReader.h
Interface of repomd.xml file reader.
zypp::RepoInfo
What is known about a repository.
Definition RepoInfo.h:72
zypp::filesystem::Pathname
Pathname.
Definition Pathname.h:48
zyppng::CacheProviderContext
Definition downloadwf.h:28
zyppng::CacheProviderContext::destDir
const zypp::Pathname & destDir() const
Definition downloadwf.cc:38
zyppng::CacheProviderContext::zyppContext
const ContextRef & zyppContext() const
Definition downloadwf.cc:31
zyppng::repo::DownloadContext::DownloadContext
DownloadContext(ContextRef zyppContext, const zypp::RepoInfo &info, const zypp::Pathname &destDir)
Definition downloader.cc:28
zyppng::repo::DownloadContext::_deltaDir
zypp::Pathname _deltaDir
Definition downloader.h:61
zyppng::repo::DownloadContext::_files
std::vector< zypp::ManagedFile > _files
Files downloaded.
Definition downloader.h:62
zyppng::repo::DownloadContext::_repoinfo
zypp::RepoInfo _repoinfo
Definition downloader.h:60
zyppng::repo::DownloadContext::deltaDir
const zypp::Pathname & deltaDir() const
Definition downloader.cc:35
zyppng::repo::DownloadContext::pluginRepoverification
const std::optional< PluginRepoverification > & pluginRepoverification() const
Definition downloader.cc:41
zyppng::repo::DownloadContext::setDeltaDir
void setDeltaDir(const zypp::Pathname &newDeltaDir)
Definition downloader.cc:44
zyppng::repo::DownloadContext::repoInfo
const zypp::RepoInfo & repoInfo() const
Definition downloader.cc:33
zyppng::repo::DownloadContext::files
std::vector< zypp::ManagedFile > & files()
Definition downloader.cc:39
zyppng::repo::DownloadContext::_pluginRepoverification
std::optional< PluginRepoverification > _pluginRepoverification
Definition downloader.h:63
downloader.h
std
Definition ansi.h:855
zyppng::operators
Definition expected.h:699
zyppng::repo
Definition downloader.cc:22
provide.h
PathInfo.h