libzypp  16.22.5
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
ManagedFile provideFile(RepoInfo repo_r, const OnMediaLocation &loc_r, const ProvideFilePolicy &policy_r)
Provide a file from a Repository.
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r) const
Provide SrcPackage in a local file.
SrcPackageProvider(repo::RepoMediaAccess &access_r)
Ctor.
Provides files from different repos.
Reference counted access to a Tp object calling a custom Dispose function when the last AutoDispose h...
Definition: AutoDispose.h:92
shared_ptr< MediaSetAccess > _access