{ return lhs.identical( rhs.satSolvable() ); }
+ /** \relates PoolItem Test for same name version release and arch. */
+ inline bool sameNVRA( const PoolItem & lhs, const PoolItem & rhs )
+ { return lhs == rhs || lhs.satSolvable().sameNVRA( rhs.satSolvable() ); }
+
+ /** \relates PoolItem Test for same name version release and arch. */
+ inline bool sameNVRA( const PoolItem & lhs, sat::Solvable rhs )
+ { return lhs.satSolvable().sameNVRA( rhs ); }
+
+ /** \relates PoolItem Test for same name version release and arch. */
+ inline bool sameNVRA( sat::Solvable lhs, const PoolItem & rhs )
+ { return lhs.sameNVRA( rhs.satSolvable() ); }
+
/** Solvable to PoolItem transform functor.
* \relates PoolItem
* \relates sat::SolvIterMixin
*/
bool identical( Solvable rhs ) const;
- public:
+ /** Test for same name-version-release.arch */
+ bool sameNVRA( Solvable rhs ) const
+ { return( ident() == rhs.ident() && edition() == rhs.edition() && arch() == rhs.arch() ); }
+
+ public:
/** \name Access to the \ref Solvable dependencies.
*
inline bool identical( Solvable lhs, Solvable rhs )
{ return lhs.identical( rhs ); }
+ /** \relates Solvable Test for same name version release and arch. */
+ inline bool sameNVRA( Solvable lhs, Solvable rhs )
+ { return lhs.sameNVRA( rhs ); }
///////////////////////////////////////////////////////////////////
namespace detail