From 1f6e145dd2debbd4beadb30111b2183b8b0b8bdc Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Fri, 4 Apr 2008 14:30:27 +0000 Subject: [PATCH] fixed wrong return value while language check --- zypp/sat/detail/PoolImpl.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1