key, when ordering packages. Then architecture, and edition last.
-------------------------------------------------------------------
+Thu Jul 31 19:01:14 CEST 2008 ma@suse.de
+
+- Follow solver policy and make repository priority the highest
+ key, when ordering packages. Then architecture, and edition last.
+- revision 10710
+
+-------------------------------------------------------------------
Wed Jul 30 19:12:00 CEST 2008 ma@suse.de
- /var/lib/zypp and /var/cache/zypp should be owned by libzypp
struct SelectableTraits
{
/** Oder on AvalableItemSet.
+ * \li repository priority
* \li best Arch
* \li best Edition
* \li ResObject::constPtr as fallback.
//
bool operator()( const PoolItem & lhs, const PoolItem & rhs ) const
{
+ unsigned lprio = lhs->satSolvable().repository().info().priority();
+ unsigned rprio = rhs->satSolvable().repository().info().priority();
+ if ( lprio != rprio )
+ return( lprio < rprio ); // lower value meands higher priority :(
int res = lhs->arch().compare( rhs->arch() );
if ( res )
return res > 0;