On Wed, Sep 26, 2007 at 01:57:06PM -0400, Kevin Walzer wrote:
> Daniel Macks wrote:
> 
> > I would have thought that 'fink dumpinfo -fsection PACKAGENAME' would
> > tell you, but -fsection doesn't seem implemented? Oops.However, you
> > can 'fink dumpinfo -finfofile PACKAGENAME' and see the section
> > embedded in the pathname.
> 
> Well, this works, and doesn't spike my CPU to 90%. However, to get the 
> same results as iterating through each section (22 calls to Fink), I now 
> have to iterate through all 6,444 individual packages and call this 
> command (fink dumpinfo -fsection PACKAGENAME) each time: 6,444 calls to 
> Fink, which I then must parse further by extracting the directory name 
> from the output. I guess I have to pick my poison.
> 
> MacPorts includes the package category in its basic listing. Here's a 
> sample from the command-line ("port list"):
> 
> zope-ploneerrorreporting       @0.11           zope/zope-ploneerrorreporting
> 
> It's useful from the command-line because you can see what categories 
> are available without going to a website. How can I submit this as a 
> feature request for Fink? For instance, the output could look like this:
> 
> p             ztrack          1.0-1           games           Curses-based 
> pseudo 3D driving game
> 
> I'm assuming that Fink would be able to parse its own data cache fairly 
> quickly and include the category with the standard output--much faster 
> than extracting the data as I currently am.

Yeah. 'fink list' could take -f flags like 'fink dumpinfo' does, so
one could request arbitrary fields. There's a "fink feature requests"
tracker on sourceforge linked from fink's homepage.

Curiosity's getting to me and I gotta ask...of what use is knowing the
section to which a package belongs? Or is there some other ultimate
goal here (sounds like what you *really* want is just a list of all
sections)?

dan

-- 
Daniel Macks
[EMAIL PROTECTED]
http://www.netspace.org/~dmacks


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to