tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkg_info(1) and wildcards / by-file listenings



On Sat, 28 Feb 2009, Joerg Sonnenberger wrote:

Hi all,
currently pkg_info will incrementally list all packages that match each
argument when used to query the pkgdb. This has the advantage of
starting earlier, but has the disadvantage of printing the same package
possibly multiple times and also without sorting. What do you think of
changing this to build a list of unique packages matching the arguments
first, optionally sorting it and then creating output?

        That sounds like a very a good idea, would make the output
        more useful for scripts and humans.

Possible sort criterions are lexical and install time. Selection
criterions are all, manual installed, automatically installed, leaves
as well as packages matching the given list.

        Would you default all output to one sort (say alpha) and then
        provide a sort by 'x' option?

        On a side note, would there be any sense in make -e take
        multiple package names?

--
                David/absolute       -- www.NetBSD.org: No hype required --


Home | Main Index | Thread Index | Old Index