Provides: yast2-packagemanager
Obsoletes: yast2-packagemanager
BuildRequires: cmake
-BuildRequires: libsatsolver-devel >= 0.10.11 openssl-devel
+BuildRequires: libsatsolver-devel >= 0.10.13 openssl-devel
BuildRequires: boost-devel curl-devel dejagnu doxygen gcc-c++ gettext-devel graphviz hal-devel libxml2-devel
%if 0%{?suse_version}
std::string Product::updaterepoKey() const
{ return lookupStrAttribute( sat::SolvAttr::productUpdaterepoKey ); }
+ std::string Product::cpeName() const
+ { return lookupStrAttribute( sat::SolvAttr::productCpeName ); }
+
std::list<std::string> Product::flags() const
{
std::list<std::string> ret;
*/
std::string updaterepoKey() const;
+ /**
+ * The Common Platform Enumeration name
+ * for this product.
+ *
+ * See http://cpe.mitre.org
+ */
+ std::string cpeName() const;
+
/** The product flags */
std::list<std::string> flags() const;
return Date();
}
+ Repository::Keywords Repository::keywords() const
+ { return Keywords(sat::SolvAttr::repositoryKeywords); }
+
+ Repository::Products Repository::products() const
+ { return Products(sat::SolvAttr::repositoryProducts); }
+
bool Repository::maybeOutdated() const
{
// system repo is not mirrored
typedef sat::detail::size_type size_type;
typedef sat::detail::RepoIdType IdType;
typedef sat::ArrayAttr<std::string,std::string> UpdateKeys;
+ typedef sat::ArrayAttr<std::string,std::string> Keywords;
+ typedef sat::ArrayAttr<std::string,std::string> Products;
public:
/** Default ctor creates \ref noRepository.*/
zypp::Date suggestedExpirationTimestamp() const;
/**
+ * repository keywords (tags)
+ */
+ Keywords keywords() const;
+
+ /**
+ * Products this repository claims it is
+ * built for.
+ */
+ Products products() const;
+
+ /**
* The suggested expiration date of this repository
* already passed
*
const SolvAttr SolvAttr::productRegisterRelease( PRODUCT_REGISTER_RELEASE );
const SolvAttr SolvAttr::productUrl( PRODUCT_URL );
const SolvAttr SolvAttr::productUrlType( PRODUCT_URL_TYPE );
+ const SolvAttr SolvAttr::productCpeName( PRODUCT_CPE_NAME );
// repository
const SolvAttr SolvAttr::repositoryTimestamp ( REPOSITORY_TIMESTAMP );
const SolvAttr SolvAttr::repositoryExpire ( REPOSITORY_EXPIRE );
const SolvAttr SolvAttr::repositoryUpdates ( REPOSITORY_UPDATES );
+ const SolvAttr SolvAttr::repositoryProducts ( REPOSITORY_PRODUCTS );
+ const SolvAttr SolvAttr::repositoryKeywords ( REPOSITORY_KEYWORDS );
} // namespace sat
/////////////////////////////////////////////////////////////////
static const SolvAttr productRegisterRelease;
static const SolvAttr productUrl;
static const SolvAttr productUrlType;
+ static const SolvAttr productCpeName;
+
//@}
/** \name repository */
static const SolvAttr repositoryTimestamp;
static const SolvAttr repositoryExpire;
static const SolvAttr repositoryUpdates;
+ static const SolvAttr repositoryKeywords;
+ static const SolvAttr repositoryProducts;
+
//@}
//@}