1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/SrcPackage.cc
12 #include "zypp/SrcPackage.h"
13 ///////////////////////////////////////////////////////////////////
18 Pathname cachedLocation( const OnMediaLocation & loc_r, const RepoInfo & repo_r );
19 } // namespace zyppintern
20 ///////////////////////////////////////////////////////////////////
22 ///////////////////////////////////////////////////////////////////
24 { /////////////////////////////////////////////////////////////////
26 IMPL_PTR_TYPE(SrcPackage);
28 ///////////////////////////////////////////////////////////////////
30 // METHOD NAME : SrcPackage::SrcPackage
33 SrcPackage::SrcPackage( const sat::Solvable & solvable_r )
34 : ResObject( solvable_r )
37 ///////////////////////////////////////////////////////////////////
39 // METHOD NAME : SrcPackage::~SrcPackage
42 SrcPackage::~SrcPackage()
45 ///////////////////////////////////////////////////////////////////
47 // SrcPackage interface forwarded to implementation
49 ///////////////////////////////////////////////////////////////////
51 std::string SrcPackage::sourcePkgType() const
52 { return lookupStrAttribute( sat::SolvAttr::arch ); }
54 OnMediaLocation SrcPackage::location() const
55 { return lookupLocation(); }
57 Pathname SrcPackage::cachedLocation() const
58 { return zyppintern::cachedLocation( location(), repoInfo() ); }
60 /////////////////////////////////////////////////////////////////
62 ///////////////////////////////////////////////////////////////////