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:
http://bkhome.org/archive/blog2/201202/ppm-ziggy-interface-fixed.html
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:
http://www.murga-linux.com/puppy/viewtopic.php?t=77564
I have implemented this part of Mavrothal's patch only, and increased it from 3 to 4 keywords:
http://bkhome.org/fossil/woof2.cgi/info/afe5f65a84
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.
Comments
fixUsername: mavrothal
I think is because petget_filterversion_orig is not generated till you pick a repo. this should fix it [code]--- a/pkg_chooser.sh 2012-04-18 23:51:44.000000000 +0300 +++ b/pkg_chooser.sh 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: http://bkhome.org/fossil/woof2.cgi/info/2a4a298b7e Now that I am on a roll with PPM, I will do some more things.
Tags: woof