libzypp 17.31.23
SrcPackage.cc
Go to the documentation of this file.
1/*---------------------------------------------------------------------\
2| ____ _ __ __ ___ |
3| |__ / \ / / . \ . \ |
4| / / \ V /| _/ _/ |
5| / /__ | | | | | | |
6| /_____||_| |_| |_| |
7| |
8\---------------------------------------------------------------------*/
12#include <zypp/SrcPackage.h>
14namespace zyppintern
15{
16 using namespace zypp;
17 // in Package.cc
18 Pathname cachedLocation( const OnMediaLocation & loc_r, const RepoInfo & repo_r );
19} // namespace zyppintern
21
23namespace zypp
24{
25
27
29 //
30 // METHOD NAME : SrcPackage::SrcPackage
31 // METHOD TYPE : Ctor
32 //
34 : ResObject( solvable_r )
35 {}
36
38 //
39 // METHOD NAME : SrcPackage::~SrcPackage
40 // METHOD TYPE : Dtor
41 //
43 {}
44
46 //
47 // SrcPackage interface forwarded to implementation
48 //
50
51 std::string SrcPackage::sourcePkgType() const
53
55 { return lookupLocation(); }
56
59
61} // namespace zypp
Describes a resource file located on a medium.
What is known about a repository.
Definition: RepoInfo.h:72
Base for resolvable objects.
Definition: ResObject.h:38
SrcPackage interface.
Definition: SrcPackage.h:30
virtual ~SrcPackage()
Dtor.
Definition: SrcPackage.cc:42
Pathname cachedLocation() const
Location of the downloaded package in cache or an empty path.
Definition: SrcPackage.cc:57
std::string sourcePkgType() const
The type of the source rpm ("src" or "nosrc").
Definition: SrcPackage.cc:51
SrcPackage(const sat::Solvable &solvable_r)
Ctor.
Definition: SrcPackage.cc:33
OnMediaLocation location() const
location of resolvable in repo
Definition: SrcPackage.cc:54
static const SolvAttr arch
Definition: SolvAttr.h:54
A Solvable object within the sat Pool.
Definition: Solvable.h:54
Easy-to use interface to the ZYPP dependency resolver.
Definition: CodePitfalls.doc:2
Pathname cachedLocation(const OnMediaLocation &loc_r, const RepoInfo &repo_r)
Definition: Package.cc:36
OnMediaLocation lookupLocation() const
Definition: SolvableType.h:147
std::string lookupStrAttribute(const SolvAttr &attr) const
Definition: SolvableType.h:140
#define IMPL_PTR_TYPE(NAME)