NetBSD-Bugs archive

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

Re: bin/51269: pkg_info enhancements



The following reply was made to PR bin/51269; it has been noted by GNATS.

From: David Holland <dholland-bugs%netbsd.org@localhost>
To: gnats-bugs%NetBSD.org@localhost
Cc: 
Subject: Re: bin/51269: pkg_info enhancements
Date: Sat, 25 Jun 2016 18:49:11 +0000

 On Sat, Jun 25, 2016 at 10:35:00AM +0000, paul%whooppee.com@localhost wrote:
  > Some useful enhancements to pkg_info(1) would be:
  > 
  > * Allow for querying of more than one variable at a time, by specifying
  >   multiple -Q options
  > 
  > 	pkg_info -Q PKGPATH -Q PKGNAME
  > 
  > * Allow querying for a list of packages that have a variable set, and/or
  >   packages that have a variable set to a specific value (and maybe even
  >   a third variant to get a list of packages that do _not_ set the variable).
  > 
  > 	pkg_info -V variable_name
  > 	pkg_info -V variable_name=value
  > 	pkg_info -V \!variable
  > 
  > * Allow querying for a list of automatic packages.  Currently we have -a
  >   for "all" or -u for "user" but nothing for "automatic"
  > 
  > * When querying a variable in multiple packages, (optionally) print each
  >   package name as well as the variable's value.  Consider
  > 
  > 	pkg_info -Q PKGPATH \*
 
 This all seems reasonable to me but it's much more likely to happen
 given a patch...
 
 (Suggestion: use -o for printing the package name, to be like nm(1)
 and some other similar things.)
 
 -- 
 David A. Holland
 dholland%netbsd.org@localhost
 


Home | Main Index | Thread Index | Old Index