change confusing return state of caseSensitive in PoolQuery
authorJosef Reidinger <jreidinger@suse.cz>
Fri, 25 Apr 2008 07:48:24 +0000 (07:48 +0000)
committerJosef Reidinger <jreidinger@suse.cz>
Fri, 25 Apr 2008 07:48:24 +0000 (07:48 +0000)
zypp/PoolQuery.cc
zypp/PoolQuery.h

index 09ec8e0..d7dff23 100644 (file)
@@ -816,7 +816,7 @@ attremptycheckend:
   { return _pimpl->_repos; }
 
   bool PoolQuery::caseSensitive() const
-  { return _pimpl->_flags & SEARCH_NOCASE; }
+  { return !(_pimpl->_flags & SEARCH_NOCASE); }
 
   bool PoolQuery::matchExact() const
   { return (_pimpl->_flags & SEARCH_STRINGMASK) == SEARCH_STRING; }
index 9fe3f68..ba04430 100644 (file)
@@ -213,6 +213,9 @@ namespace zypp
 
     const StrContainer & repos() const;
 
+    /**
+     * returns true if search is case sensitive
+     */
     bool caseSensitive() const;
 
     bool matchExact() const;