libzypp  17.28.0
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 
16 #include <zypp/PathInfo.h>
17 #include <zypp/TmpPath.h>
18 #include <zypp/SrcPackage.h>
19 
20 using std::endl;
21 
23 namespace zypp
24 {
26  namespace repo
27  {
28 
30  : _access( access_r )
31  {}
32 
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
zypp::repo::SrcPackageProvider::~SrcPackageProvider
~SrcPackageProvider()
Dtor.
Definition: SrcPackageProvider.cc:33
zypp::repo::SrcPackageProvider::_access
RepoMediaAccess & _access
Definition: SrcPackageProvider.h:51
_access
shared_ptr< MediaSetAccess > _access
Definition: RepoMirrorList.cc:61
zypp
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
zypp::repo::RepoMediaAccess::provideFile
ManagedFile provideFile(RepoInfo repo_r, const OnMediaLocation &loc_r, const ProvideFilePolicy &policy_r)
Provide a file from a Repository.
Definition: RepoProvideFile.cc:235
zypp::repo::SrcPackageProvider::provideSrcPackage
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r) const
Provide SrcPackage in a local file.
Definition: SrcPackageProvider.cc:36
SrcPackageProvider.h
zypp::repo::RepoMediaAccess
Provides files from different repos.
Definition: RepoProvideFile.h:61
zypp::AutoDispose
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition: AutoDispose.h:93
zypp::repo::SrcPackageProvider::SrcPackageProvider
SrcPackageProvider(repo::RepoMediaAccess &access_r)
Ctor.
Definition: SrcPackageProvider.cc:29
SrcPackage.h