[Lubuntu-desktop] How LSC works?

2011-12-21 Thread Jean-Pierre Vidal Piesset
One thing I need often is the presence of Lame on my system. So, i go to
LSC to install lame but can't see it!!
I go to USC to verify and i come to realize that the same search parameter
returns different things... (just try lame in LSC and USC to see it ;)
I'm guessing that this happens with other searches too.
My point is: LSC should show the same apps that USC with the same search
parameters, right?

-- jpxsat
___
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


Re: [Lubuntu-desktop] How LSC works?

2011-12-21 Thread Yorvyk
On Wed, 21 Dec 2011 14:19:04 +
Yorvyk yorvik.ubu...@googlemail.com wrote:

 On Wed, 21 Dec 2011 10:49:36 -0300
 Jean-Pierre Vidal Piesset jpx...@gmail.com wrote:
 
  One thing I need often is the presence of Lame on my system. So, i go to
  LSC to install lame but can't see it!!
  I go to USC to verify and i come to realize that the same search parameter
  returns different things... (just try lame in LSC and USC to see it ;)
  I'm guessing that this happens with other searches too.
  My point is: LSC should show the same apps that USC with the same search
  parameters, right?
  
 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.

-- 
Yorvyk

___
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


Re: [Lubuntu-desktop] How LSC works? (searching for packages)

2011-12-21 Thread Jonathan Marsden
On 12/21/2011 06:39 AM, Yorvyk wrote:

 On Wed, 21 Dec 2011 14:19:04 + 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