On 12/21/2011 06:39 AM, Yorvyk wrote: > On Wed, 21 Dec 2011 14:19:04 +0000 Yorvyk <yorvik.ubu...@googlemail.com> > wrote: >> On Wed, 21 Dec 2011 10:49:36 -0300 Jean-Pierre Vidal Piesset >> <jpx...@gmail.com> wrote:
>>> ... the same search parameter >>> returns different things... (just try lame in LSC and USC to see it ;) ... >> With the same search parameters they should show the same results >> but, they don't appear to have the same parameters. They appear to >> be searching on different fields. > The search does seem a bit bizarre. I've just tried both Lubuntu and > lubuntu and it finds nothing. Comparing how LSC does its searches, and how apt-cache search does them, should help unravel that issue. As a quick test of searching package names in Python: cat >aptsearch.py <<"EOF" #!/usr/bin/python import sys, re, apt_pkg apt_pkg.init() cache = apt_pkg.Cache() for pkg in cache.packages: if re.search(sys.argv[1], pkg.name, re.IGNORECASE): print " ", pkg.name EOF chmod +x aptsearch.py ./aptsearch.py lubuntu # search for packages with lubuntu in their names is all it takes to demo that basic package name searches in Python work fine. I would hope that LSC actually searches on package descriptions as well as package names, of course, but I'll leave doing that as an "exercise for the reader" :) Personally, I'll stick to using apt-cache and apt-get, since they work, in all varieties of Debian and Ubuntu... so why should I learn yet another GUI way to do what those commands already do :) Jonathan _______________________________________________ Mailing list: https://launchpad.net/~lubuntu-desktop Post to : lubuntu-desktop@lists.launchpad.net Unsubscribe : https://launchpad.net/~lubuntu-desktop More help : https://help.launchpad.net/ListHelp