Comment 5 for bug 598115

Revision history for this message
In , Matthias Klumpp (ximion) wrote :

Hello!
It would be very important for me to be able to use wildcards in PackageKit's search terms. For example on a Debian-based machine
 $ pkcon search file '/usr/lib/libogg.so.'
finds the right package containing a version of libogg.
The same on Fedora does not throw any result, cause the Yum backend needs a more specific search command than Apt requires:
 $ yum provides '/usr/lib/libogg.so.'
does not find anything, but
 $ yum provides '/usr/lib/libogg.so.*'
using the asterisk as wildcard, does find a package. If I try to submit a string containing an asterisk using pk_client_search_files_async(), PackageKit does not process the command and throws a warning about "Invalid search containing '*'".
This causes applications using PackageKit to find a package on some distributions and on some others not although it is avaliable. (Depending on the backend PKit uses)
It would be great if wildcards could be submitted to the backend if it supports them. (Otherwise a fallback would be nice) I think most of the packaging tools support wildcards, so why not make PackageKit able to use them? (I think not only me but also a lot of other people who use pkcon in scripts would be happy about this option)