From: Stefan Schubert Date: Fri, 4 Apr 2008 14:30:27 +0000 (+0000) Subject: fixed wrong return value while language check X-Git-Tag: 6.6.0~1170 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f6e145dd2debbd4beadb30111b2183b8b0b8bdc;p=platform%2Fupstream%2Flibzypp.git fixed wrong return value while language check --- diff --git a/zypp/sat/detail/PoolImpl.cc b/zypp/sat/detail/PoolImpl.cc index f42ef3afc..2d0cbbb92 100644 --- a/zypp/sat/detail/PoolImpl.cc +++ b/zypp/sat/detail/PoolImpl.cc @@ -72,7 +72,7 @@ namespace zypp if ( lhs == NAMESPACE_LANGUAGE ) { const std::tr1::unordered_set & locale2Solver( reinterpret_cast(data)->_locale2Solver ); - return locale2Solver.find( IdString(rhs) ) == locale2Solver.end() ? -1 : 0; + return locale2Solver.find( IdString(rhs) ) == locale2Solver.end() ? 0 : 1; } DBG << Capability( lhs ) << " vs. " << Capability( rhs ) << endl; return 0;