control: severity -1 wishlist
thanks

This behavior was not much of real problem but how this happens was a
bit of mastery for me.  Here is what I found out.
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=615807

If any kind of search term normalization is in place, search result
shouldn't have output such as:
   Package: mC
with capital C.

It turned out that search with "dpkg-query -s" is case insensitive.  For
example

 $ dpkg-query -s dpkG
Package: dpkg
Essential: yes
Status: install ok installed
Priority: required
...

While, search with "dpkg-query -l" is case insensitive.  For example
 $ dpkg-query -l dpkG
dpkg-query: no packages found matching dpkG

These are used internally in dpkg-www in /usr/lib/cgi-bin/dpkg to
generate a web page.  If single package is passed, it uses "dpkg-query
-s" via listPackage().  If multiple packages or glob are passed, these
inputs use "dpkg-query -l" via listPackages() and filter its output with
listFilter.

I think if anyone care to fix the original bug report issue to be
addressed, it may be simplest and cleanest to change behavior of
"dpkg-query -s" to be case sensitive.  This is somewhat intrusive major
change for basic tool such as dpkg-query, though.

Then invalid search term with upper case will not be matched and things
will be consistent.

Of course issuing warning for upper case input may be useful for
dpkg-www but this is not important.

Regards,

Osamu

Reply via email to