1 /*---------------------------------------------------------------------\
3 | |__ / \ / / . \ . \ |
8 \---------------------------------------------------------------------*/
9 /** \file zypp/Package.cc
12 #include "zypp/Package.h"
16 ///////////////////////////////////////////////////////////////////
18 { /////////////////////////////////////////////////////////////////
20 IMPL_PTR_TYPE(Package);
22 ///////////////////////////////////////////////////////////////////
24 // METHOD NAME : Package::Package
27 Package::Package( const sat::Solvable & solvable_r )
28 : ResObject( solvable_r )
31 ///////////////////////////////////////////////////////////////////
33 // METHOD NAME : Package::~Package
39 ///////////////////////////////////////////////////////////////////
41 // Package interface forwarded to implementation
43 ///////////////////////////////////////////////////////////////////
45 #warning DUMMY changelog
46 Changelog Package::changelog() const
47 { return Changelog(); }
50 std::string Package::buildhost() const
51 { return lookupStrAttribute( sat::SolvAttr::buildhost ); }
54 std::string Package::distribution() const
55 { return lookupStrAttribute( sat::SolvAttr::distribution ); }
58 std::string Package::license() const
59 { return lookupStrAttribute( sat::SolvAttr::license ); }
62 std::string Package::packager() const
63 { return lookupStrAttribute( sat::SolvAttr::packager ); }
66 std::string Package::group() const
67 { return lookupStrAttribute( sat::SolvAttr::group ); }
69 #warning DUMMY keywords
70 Package::Keywords Package::keywords() const
71 { return Keywords(); }
73 /** Don't ship it as class Url, because it might be
74 * in fact anything but a legal Url. */
76 std::string Package::url() const
80 ByteCount Package::sourcesize() const
81 { return lookupNumAttribute( sat::SolvAttr::sourcesize ); }
84 #warning DUMMY authors
85 std::list<std::string> Package::authors() const
86 { return std::list<std::string>(); }
89 #warning DUMMY filenames
90 std::list<std::string> Package::filenames() const
91 { return std::list<std::string>(); }
93 OnMediaLocation Package::location() const
95 #warning MISSING checkdums in OnMediaLocation
98 std::string filename = lookupLocation( medianr );
99 /* XXX This datadir should be part of RepoInfo. */
100 if (repoInfo().type().toEnum() == repo::RepoType::YAST2_e)
101 filename = std::string("suse/") + filename;
102 loc.setLocation(filename, medianr);
106 #warning DUMMY sourcePkgName
107 std::string Package::sourcePkgName() const
108 { return std::string(); }
110 #warning DUMMY sourcePkgEdition
111 Edition Package::sourcePkgEdition() const
112 { return Edition(); }
114 /////////////////////////////////////////////////////////////////
116 ///////////////////////////////////////////////////////////////////