#include "zypp/ResObject.h"
#include "zypp/PackageKeyword.h"
#include "zypp/Changelog.h"
+#include "zypp/VendorSupportOptions.h"
///////////////////////////////////////////////////////////////////
namespace zypp
typedef TraitsType::constPtrType constPtr;
public:
- typedef std::set<PackageKeyword> Keywords;
+ typedef sat::ArrayAttr<PackageKeyword,IdString> Keywords;
public:
+ /**
+ * Returns the level of supportability the vendor
+ * gives to this package.
+ *
+ * This is one value from \ref VendorSupportOption
+ */
+ VendorSupportOption vendorSupport() const;
+
+ /**
+ * True if the vendor support for this package
+ * is unknown or explictly unsupported.
+ */
+ bool maybeUnsupported() const;
+
/** Get the package change log */
Changelog changelog() const;
/** */
std::list<std::string> filenames() const;
/** Name of the source rpm this package was built from.
- * Empty if unknown.
*/
std::string sourcePkgName() const;
/** Edition of the source rpm this package was built from.
- * Empty if unknown.
*/
Edition sourcePkgEdition() const;
* Checksum the source says this package should have.
* \see \ref location
*/
- CheckSum checksum() const
- { return location().checksum(); }
+ CheckSum checksum() const;
/** Location of the resolvable in the repository.
* \ref OnMediaLocation conatins all information required to
*/
OnMediaLocation location() const;
-
- /** \deprecated no metadata always empty */
- ZYPP_DEPRECATED std::string os() const { return std::string(); }
- /** \deprecated no metadata always empty */
- ZYPP_DEPRECATED std::string prein() const { return std::string(); }
- /** \deprecated no metadata always empty */
- ZYPP_DEPRECATED std::string postin() const { return std::string(); }
- /** \deprecated no metadata always empty */
- ZYPP_DEPRECATED std::string preun() const { return std::string(); }
- /** \deprecated no metadata always empty */
- ZYPP_DEPRECATED std::string postun() const { return std::string(); }
-
protected:
friend Ptr make<Self>( const sat::Solvable & solvable_r );
/** Ctor */
/** Dtor */
virtual ~Package();
};
+
///////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////