projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e3fa396
)
fixed wrong return value while language check
author
Stefan Schubert
<schubi@suse.de>
Fri, 4 Apr 2008 14:30:27 +0000
(14:30 +0000)
committer
Stefan Schubert
<schubi@suse.de>
Fri, 4 Apr 2008 14:30:27 +0000
(14:30 +0000)
zypp/sat/detail/PoolImpl.cc
patch
|
blob
|
history
diff --git
a/zypp/sat/detail/PoolImpl.cc
b/zypp/sat/detail/PoolImpl.cc
index f42ef3afc29752db6dc50d081a7d0c2112d37e1d..2d0cbbb92f1ef88c83c6c1c6cdb0ffdd4f444268 100644
(file)
--- 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<IdString> & locale2Solver( reinterpret_cast<PoolImpl*>(data)->_locale2Solver );
if ( lhs == NAMESPACE_LANGUAGE )
{
const std::tr1::unordered_set<IdString> & locale2Solver( reinterpret_cast<PoolImpl*>(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;
}
DBG << Capability( lhs ) << " vs. " << Capability( rhs ) << endl;
return 0;