site  contact  subhomenews

PPM: Multi-keyword search

May 04, 2012 — BarryK
There were some comments posted to this blog awhile back, about improving the search capability of the Puppy Package Manager:

I have only just started to look at this.

Mavrothal has posted some patches, one of which is to allow multiple keywords in the search box, and to search both package name and description:

I have implemented this part of Mavrothal's patch only, and increased it from 3 to 4 keywords:

I experimented with Mavrothal's patch to search all repositories, however found some issues. One was a bug, the button to choose the current repo can in fact have two lines of text displaying in the button. The second issue is that search results should identify which repo the found package is in.

I will take a look at implementing it with these issues addressed.


Username: mavrothal
I think is because petget_filterversion_orig is not generated till you pick a repo. this should fix it [code]--- a/ 2012-04-18 23:51:44.000000000 +0300 +++ b/ 2012-05-04 08:11:01.830000000 +0300 @@ -206,7 +206,8 @@ FILTER_CATEG="Desktop" #note, cannot initialise radio buttons in gtkdialog... echo "Desktop" > /tmp/petget_filtercategory #must start with Desktop. -echo "$FIRST_DB" > /tmp/petget_filterversion #ex: slackware-12.2-official +echo "$FIRST_DB" > /tmp/petget_filterversion +echo "$FIRST_DB" > /tmp/petget_filterversion_orig #if [ "$DISTRO_BINARY_COMPAT" = "ubuntu" -o "$DISTRO_BINARY_COMPAT" = "debian" ];then if [ 0 -eq 1 ];then #w020 disable this choice. [/code]

PPM: multi-repo search
Username: BarryK
"OK, I have implemented multi-repo search. It is based on the idea from Mavrothal. I went carefully through the code, examining how to implement this so that it is completely sound. Woof commit: Now that I am on a roll with PPM, I will do some more things.

Tags: woof