libzypp 17.37.17
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
20using std::endl;
21
23namespace zypp
24{
26 namespace repo
27 {
28
32
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
Provides files from different repos.
SrcPackageProvider(repo::RepoMediaAccess &access_r)
Ctor.
ManagedFile provideSrcPackage(const SrcPackage_constPtr &srcPackage_r) const
Provide SrcPackage in a local file.
Easy-to use interface to the ZYPP dependency resolver.
AutoDispose< const Pathname > ManagedFile
A Pathname plus associated cleanup code to be executed when path is no longer needed.
Definition ManagedFile.h:27