Subject: bin/13701: pkg_info has no option to show just the package dependencies
To: None <gnats-bugs@gnats.netbsd.org>
From: Greg A. Woods <woods@weird.com>
List: netbsd-bugs
Date: 08/12/2001 20:34:43
>Number: 13701
>Category: bin
>Synopsis: pkg_info has no option to show just the package dependencies
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sun Aug 12 18:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Greg A. Woods
>Release: 2001/08/10
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:
System: NetBSD 1.5W
>Description:
a simple option for pkg_info to show just the dependency
information for a package (i.e. without having to parse it out
of the normal or versbose output) is missing.
>How-To-Repeat:
>Fix:
Index: info/main.c
===================================================================
RCS file: /cvs/NetBSD/src/usr.sbin/pkg_install/info/main.c,v
retrieving revision 1.1.1.5
diff -c -r1.1.1.5 main.c
*** info/main.c 2001/03/25 06:44:14 1.1.1.5
--- info/main.c 2001/05/05 01:32:12
***************
*** 38,44 ****
#include "lib.h"
#include "info.h"
! static char Options[] = "aBbcDde:fFhIikLl:mpqRrsSvV";
int Flags = 0;
Boolean AllInstalled = FALSE;
--- 38,44 ----
#include "lib.h"
#include "info.h"
! static char Options[] = "aBbcDde:fFhIikLl:mnpqRrsSvV";
int Flags = 0;
Boolean AllInstalled = FALSE;
***************
*** 55,61 ****
usage(void)
{
fprintf(stderr, "%s\n%s\n%s\n",
! "usage: pkg_info [-BbcDdFfIikLmpqRrSsVvh] [-e package] [-l prefix]",
" pkg-name [pkg-name ...]",
" pkg_info -a [flags]");
exit(1);
--- 55,61 ----
usage(void)
{
fprintf(stderr, "%s\n%s\n%s\n",
! "usage: pkg_info [-BbcDdFfIikLmnpqRrSsVvh] [-e package] [-l prefix]",
" pkg-name [pkg-name ...]",
" pkg_info -a [flags]");
exit(1);
***************
*** 142,147 ****
--- 142,151 ----
case 'm':
Flags |= SHOW_MTREE;
+ break;
+
+ case 'n':
+ Flags |= SHOW_DEPENDS;
break;
case 'p':
Index: info/pkg_info.1
===================================================================
RCS file: /cvs/NetBSD/src/usr.sbin/pkg_install/info/pkg_info.1,v
retrieving revision 1.1.1.7
diff -c -r1.1.1.7 pkg_info.1
*** info/pkg_info.1 2001/06/12 21:27:08 1.1.1.7
--- info/pkg_info.1 2001/06/13 15:47:55
***************
*** 136,141 ****
--- 136,143 ----
each field.
.It Fl m
Show the mtree file (if any) for each package.
+ .It Fl n
+ Show which packages each package needs (depends upon), if any.
.It Fl p
Show the installation prefix for each package.
.It Fl q
>Release-Note:
>Audit-Trail:
>Unformatted: