On Wed, Sep 26, 2007 at 11:03:37AM -0400, Kevin Walzer wrote: > Does the Fink command-line tool provide any hooks for querying what > category a package belongs to? Right now the only way I can get at this > information is to iterate through "fink list --section=foo", parse the > output from each section, and then merge everything into a large > list/array. Iterating through "fink list" so many times (22 by my count, > for all sections of Fink packages) is very slow, and also causes Perl to > consume up to 99% of CPU time for each iteration. If there is a more > efficient approach than I have outlined here, for instance through some > command-line switch that could add a "section" column to the output of > "fink list", that would be optimal.
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. 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