Right, I had indeed overlooked the issue. Thanks for your patience and the detailed explanation.
In this context, the complete patch makes sense indeed, and there are potentially other places in the code (i.e. other source files) that need patching as well. A quick grep on the trunk reveals the following places:
Right, I had indeed overlooked the issue. Thanks for your patience and the detailed explanation.
In this context, the complete patch makes sense indeed, and there are potentially other places in the code (i.e. other source files) that need patching as well. A quick grep on the trunk reveals the following places:
$ grep -rn --exclude="*.pyc" "lower()" * view/appview. py:272: k = os.environ[ "SOFTWARE_ CENTER_ SEARCHES_ SORT_MODE" ].strip( ).lower( ) view/historypan e.py:225: search_matches = self.searchentr y.get_text( ).lower( ) in pkg.lower() view/catview. py:231: q = xapian. Query(" AC"+and_ elem.text. lower() ) view/catview. py:240: xapian. Query(" XS"+and_ elem.text. lower() ), view/catview. py:241: xapian. Query(" AE"+and_ elem.text. lower() )) view/catview. py:245: q = xapian. Query(" AT"+and_ elem.text. lower() ) view/catview. py:249: q = xapian. Query(" AH"+and_ elem.text. lower() ) view/catview. py:254: q1 = xapian. Query(" AP"+and_ elem.text. lower() ) view/catview. py:256: xapian. Query(" XP"+and_ elem.text. lower() )) view/catview. py:261: s = "pkg_wildcard:%s" % and_elem. text.lower( ) view/catview. py:278: return xapian. Query(" AC"+include. text.lower( )) apt/apthistory. py:36: setattr(self, k.lower(), map(string.strip, sec[k].split(","))) apt/apthistory. py:38: setattr(self, k.lower(), []) apt/apthistory. py:42: count += len(getattr(self, k.lower())) db/update. py:130: if ignore. strip() .lower( ) == "true": db/update. py:159: doc.add_ term("AC" +cat.lower( )) db/update. py:163: doc.add_ term("AT" +type.lower( )) apps.py: 29: cmp=lambda x, y: cmp(x.split( ":")[0] .lower( ), apps.py: 30: y.split( ":")[0] .lower( )))) Query(str_ to_prefix[ search_ prefix] +search_ term.lower( ))
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
softwarecenter/
utils/installed
utils/installed
utils/query.py:22: s = search_term.lower()
utils/query.py:33: query = xapian.
How about putting the ascii_lower and ascii_upper functions in e.g. softwarecenter/ utils.py and patching the whole codebase where relevant?