Tiny Core Linux

dCore Import Debian Packages to Mountable SCE extensions => dCore X86 => Topic started by: nitram on February 15, 2016, 08:06:34 PM

Title: odd sce-import search results
Post by: nitram on February 15, 2016, 08:06:34 PM
Running simply  sce-import SINGLE_LETTER_SEARCH  supposed to return packages that start with search characters. Get unexpected results with some letters. The oddball results still contain the searched letter, but don't start with it. Some noticeably affected search letters:
Code: [Select]
sce-import a
.
.
         1. Xvesa
         2. a2jmidid
         3. a2ps

When a second search letter is added, then results are good:
Code: [Select]
sce-import a2
.
.
         1. a2jmidid
         2. a2ps


Other oddballs:
Code: [Select]
sce-import x
.
.
         1. Xprogs
         2. Xtc
         3. Xvesa
         4. ax25-3.16.6-tinycore
         5. ax25-3.8.13-tinycore
         6. ax25-4.2.9-tinycore
         7. exaile
         8. extlinux
         9. firefox
        10. firmware-bnx2
        11. firmware-bnx2x
        12. firmware-intelwimax
        13. firmware-ipw2x00
        14. firmware-linux-free
        15. firmware-linux-nonfree
        16. firmware-netxen
        17. lxde
        18. syslinux
        19. util-linux
        20. virtualbox
        21. virtualbox-4.3.10-host-modules-3.16.6-tinycore
        22. virtualbox-4.3.18-guest-additions-modules-3.16.6-tinycore
        23. virtualbox-4.3.18-host-modules-3.16.6-tinycore
        24. virtualbox-4.3.26-guest-additions-modules-3.16.6-tinycore
        25. virtualbox-4.3.26-host-modules-3.16.6-tinycore
        26. virtualbox-4.3.30-guest-additions-modules-3.16.6-tinycore
        27. virtualbox-4.3.30-host-modules-3.16.6-tinycore
        28. virtualbox-4.3.32-guest-additions-modules-3.16.6-tinycore
        29. virtualbox-4.3.32-host-modules-3.16.6-tinycore
        30. virtualbox-4.3.34-guest-additions-modules-3.16.6-tinycore
        31. virtualbox-4.3.34-host-modules-3.16.6-tinycore
        32. virtualbox-5.0.10-guest-additions-modules-3.16.6-tinycore
        33. virtualbox-5.0.10-host-modules-3.16.6-tinycore
        34. virtualbox-5.0.4-guest-additions-modules-3.16.6-tinycore
        35. virtualbox-5.0.4-host-modules-3.16.6-tinycore
        36. virtualbox-guest-additions-modules-3.8.13-tinycore
        37. virtualbox-host-modules-3.8.13-tinycore
        38. wimax-3.16.6-tinycore
        39. wimax-3.8.13-tinycore
        40. wimax-4.2.9-tinycore
        41. x-face-el
        42. x-pgp-sig-el
        43. x-tile
        44. x11-apps
        45. x11-common


Code: [Select]
sce-import z
.
.
         1. harfbuzz
         2. xf86-input-fpit-wheezy
         3. z80asm
         4. z80dasm
Title: Re: odd sce-import search results
Post by: nitram on February 15, 2016, 10:52:54 PM
When a second search letter is added, then results are good...
Incorrect. Seems dCore packages don't honour the 'starts with' query:
Code: [Select]
Select package for 'sa'.

         1. Xvesa
         2. alsa-modules-3.16.6-tinycore
         3. alsa-modules-3.8.13-tinycore
         4. alsa-modules-4.2.9-tinycore
         5. sa-compile
         6. sa-exim
Title: Re: odd sce-import search results
Post by: Rich on February 15, 2016, 11:08:40 PM
Hi nitram
I think that's intentional, see:
http://forum.tinycorelinux.net/index.php/topic,18368.msg111922.html#msg111922
Title: Re: odd sce-import search results
Post by: nitram on February 16, 2016, 04:41:32 PM
Thanks for link Rich, i don't understand. As per the link, the issue reported is not regarding the  -c  (contains) option, nor am i asking to use two 'snippets', that would be too complex. Jason's 'snippet the matched any part of the package name' appears to work well, that's the -c option. I would think user using a simple  sce-import LETTER  search would expect results that start with only that letter?
Title: Re: odd sce-import search results
Post by: Jason W on February 16, 2016, 07:57:12 PM
There appears to be a bug in the standard search method.  Will get to it tomorrow.
Title: Re: odd sce-import search results
Post by: Jason W on February 17, 2016, 10:18:20 AM
Fix will be in the next RC.
Title: Re: odd sce-import search results
Post by: nitram on February 19, 2016, 04:47:02 AM
Just re-checked running latest: dCore-jessie:2016.02.18.21.42

Did not notice a change, same issue and examples reported in first post.
Title: Re: odd sce-import search results
Post by: Jason W on February 19, 2016, 05:59:59 AM
I had fixed it in the live sce-import file during a session, forgot to put it in the the upload, will tonight.
Title: Re: odd sce-import search results
Post by: nitram on February 19, 2016, 07:02:25 PM
Running  sce-import  LETTER_SEARCH  as well as  sce-import -c LETTER_SEARCH  all work great now.  Thanks for the fix. Trivia running dCore-jessie, repositories have 844 packages that start with 'x' and 5662 packages that contain 'x' !
Title: Re: odd sce-import search results
Post by: Jason W on February 19, 2016, 11:21:34 PM
Run 'sce-import -l' and it brings 21206 packages due to so many starting with lib*.

Run 'sce-import -c l' and it brings 34341 packages.  lol

Glad to hear and see it is working now.
Title: Re: odd sce-import search results
Post by: nitram on February 20, 2016, 02:01:51 AM
Wow! On dCore-jessie  sce-import -c l  only gives 29174 available packages. Is yours Ubuntu-based? I suspected Ubuntu always had larger repositories but that's quite a difference. Since dCore allows bypassing init system silliness and cruft, seems Ubuntu-based has advantages, not to mention PPAs,
Title: Re: odd sce-import search results
Post by: Jason W on February 20, 2016, 09:23:15 AM
dCore-wily.  Yeah, there are more packages for Ubuntu as well as the PPA option.