libzypp: zypp/repo/SrcPackageProvider.cc Source File

libzypp 17.38.14

SrcPackageProvider.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#include <iostream>
13#include <fstream>
14
15#include <zypp/repo/SrcPackageProvider.h>
16#include <zypp/PathInfo.h>
17#include <zypp/TmpPath.h>
18#include <zypp/SrcPackage.h>
19
20using std::endl;
21
23namespace zypp
24{
26 namespace repo
27 {
28
29 SrcPackageProvider::SrcPackageProvider( repo::RepoMediaAccess & access_r )
30 : _access( access_r )
31 {}
32
33 SrcPackageProvider::~SrcPackageProvider()
34 {}
35
36 ManagedFile SrcPackageProvider::provideSrcPackage( const SrcPackage_constPtr & srcPackage_r ) const
37 { return _access.provideFile( srcPackage_r->repoInfo(), srcPackage_r->location() ); }
38
39 } // namespace repo
41} // namespace zypp
SrcPackageProvider.h
SrcPackage.h
zypp::repo::RepoMediaAccess
Provides files from different repos.
Definition RepoProvideFile.h:73
zypp::repo::SrcPackageProvider::_access
RepoMediaAccess & _access
Definition SrcPackageProvider.h:51
zypp::repo::SrcPackageProvider::SrcPackageProvider
SrcPackageProvider(repo::RepoMediaAccess &access_r)
Ctor.
Definition SrcPackageProvider.cc:29
zypp::repo::SrcPackageProvider::~SrcPackageProvider
~SrcPackageProvider()
Dtor.
Definition SrcPackageProvider.cc:33
zypp::repo::SrcPackageProvider::provideSrcPackage
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r) const
Provide SrcPackage in a local file.
Definition SrcPackageProvider.cc:36
zypp::repo
Definition DeltaCandidates.cc:30
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition CodePitfalls.doc:2
zypp::ManagedFile
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
Definition ManagedFile.h:27
PathInfo.h
TmpPath.h