Author: kkaempf Date: Tue May 27 14:26:31 2008 New Revision: 10236 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10236&view=rev Log: define equality operator for relations Modified: trunk/sat-solver/bindings/relation.i Modified: trunk/sat-solver/bindings/relation.i URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/bindings/relation.i?rev=10236&r1=10235&r2=10236&view=diff ============================================================================== --- trunk/sat-solver/bindings/relation.i (original) +++ trunk/sat-solver/bindings/relation.i Tue May 27 14:26:31 2008 @@ -70,5 +70,12 @@ #endif int match( const Relation *r ) { return evrcmp( $self->pool, relation_evrid( $self ), relation_evrid( r ), EVRCMP_MATCH_RELEASE ) == 0; } + +#if defined(SWIGRUBY) + %alias equal "=="; +#endif + int equal( const Relation *r ) + { return relation_evrid( $self ) == relation_evrid( r ); } + } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org