feature request: slightly better 'package not available' message

2011-05-06 Thread Roger Pack
Hello all.

I tried this the other day:


$ sudo port install ack
Error: Port ack not found

Obviously, what I meant was
$ port install p5-app-ack

Perhaps it could be made to output possible matches as rubygems
currently does, or, like ubuntu packages known to contain that
binary or what not.
That would indeed be user friendlier.

Thanks much!
Sorry if this is a repeat request.
-roger-
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users


Re: feature request: slightly better 'package not available' message

2011-05-06 Thread Arno Hautala
On Fri, May 6, 2011 at 08:28, Roger Pack rogerdpa...@gmail.com wrote:

 Perhaps it could be made to output possible matches as rubygems
 currently does, or, like ubuntu packages known to contain that
 binary or what not.

port already has the search command for searching within package
names, descriptions, etc. It would definitely be beneficial to
automatically offer a basic list of matches in cases like this.
Further fuzziness (suggesting p5-app-ack if the user enters p5-ap-ack,
p5-ack, ack, or even akk) would be even better, but would require the
code to support it, though I wouldn't be surprised if libraries for
this sort of thing already exist.

Actually matching against packages that contain a command has been
suggested I think. The easiest way to do this would be once binary
packages are available. The package contents could be added to a
searchable database.

Good ideas. You might try searching trac.macports.org to see if
they've already been submitted. Submit them yourself if they aren't
already there.

At the least, it'd be a good idea for the error message to suggest
using port search, even if the search isn't automatically run.

-- 
arno  s  hautala    /-|   a...@alum.wpi.edu

pgp b2c9d448
___
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo.cgi/macports-users