[packagekit] search terms should be "one word" ?

Mounir Lamouri mounir.lamouri at gmail.com
Sun Jun 28 02:26:25 PDT 2009


Richard Hughes wrote:
> On Sat, Jun 27, 2009 at 2:32 PM, Mounir Lamouri<mounir.lamouri at gmail.com> wrote:
>>               If the search term does not start with <doc:tt>/</doc:tt> then it should be treated as a single filename, which can be in any directory.
>> +              The search term can't contain spaces. It must contain only one file to search.
> 
> Arrh. Thought of one issue. We need to be able to search for
> "/usr/share/Quake 3/Data Files/data1.pak", which of course has spaces.
> Maybe change the line to:
> 
> "Only one filename can be specified, which should not be escaped or
> surrounded in quotes."
> 
> Richard.

Pushed with your modification.
We now have to had a check for spaces in SearchGroup. The patch is attached. I
didn't add a new error, using the same one used for ? or *. Are you ok with that ?

Thanks,
Mounir
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: packagekit-transaciton-spaces.patch
URL: <http://lists.freedesktop.org/archives/packagekit/attachments/20090628/808e39c8/attachment-0002.asc>


More information about the PackageKit mailing list