+-------------------------------------------------------------------
+Mon Sep 22 16:27:41 CEST 2008 - ma@suse.de
+
+- Remove superfluous PRODUCT_REFERENCES attribute.
+- revision 11127
+
-------------------------------------------------------------------
Mon Sep 22 16:13:08 CEST 2008 - ma@suse.de
sat::Solvable Product::referencePackage() const
{
- Capability identCap( lookupStrAttribute( sat::SolvAttr::productReferences ) );
- if ( ! identCap )
- {
- // No 'references': fallback to provider of 'product(name) = version'
- // Without this solver testcase won't work, as it does not remember
- // 'references'.
- identCap = Capability( str::form( "product(%s) = %s", name().c_str(), edition().c_str() ) );
- }
- if ( ! identCap )
- {
- return sat::Solvable::noSolvable;
- }
+ // Look for a provider of 'product(name) = version' of same
+ // architecture and within the same repo.
+ Capability identCap( str::form( "product(%s) = %s", name().c_str(), edition().c_str() ) );
- // if there is productReferences defined, we expect
- // a matching package within the same repo. And of
- // same arch.
sat::WhatProvides providers( identCap );
for_( it, providers.begin(), providers.end() )
{
const SolvAttr SolvAttr::productType ( PRODUCT_TYPE );
const SolvAttr SolvAttr::productFlags ( PRODUCT_FLAGS );
const SolvAttr SolvAttr::productFlavor ( PRODUCT_FLAVOR );
- const SolvAttr SolvAttr::productReferences ( PRODUCT_REFERENCES );
const SolvAttr SolvAttr::productUpdaterepoKey ( PRODUCT_UPDATEREPOKEY );
const SolvAttr SolvAttr::productRegisterTarget ( PRODUCT_REGISTER_TARGET );
const SolvAttr SolvAttr::productRegisterRelease( PRODUCT_REGISTER_RELEASE );
static const SolvAttr productType;
static const SolvAttr productFlags;
static const SolvAttr productFlavor;
- static const SolvAttr productReferences; // the package providing the metadata
static const SolvAttr productUpdaterepoKey;
static const SolvAttr productRegisterTarget;
static const SolvAttr productRegisterRelease;