Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/pkg_install/info Pull up revision 1.19 (reques...
details: https://anonhg.NetBSD.org/src/rev/8d103ac0da50
branches: netbsd-1-4
changeset: 469921:8d103ac0da50
user: he <he%NetBSD.org@localhost>
date: Mon Dec 20 15:35:49 1999 +0000
description:
Pull up revision 1.19 (requested by hubertf):
Add code to calculate and store the size of a package in both
the installed version and binary packages. The size can later
be queried via the pkg_info -s and -S switches, the pkg_create
-s swich was renamed -L. Fixes PR#8982.
diffstat:
usr.sbin/pkg_install/info/main.c | 16 ++++++++++++----
1 files changed, 12 insertions(+), 4 deletions(-)
diffs (48 lines):
diff -r 47c27b2fb576 -r 8d103ac0da50 usr.sbin/pkg_install/info/main.c
--- a/usr.sbin/pkg_install/info/main.c Mon Dec 20 15:35:28 1999 +0000
+++ b/usr.sbin/pkg_install/info/main.c Mon Dec 20 15:35:49 1999 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: main.c,v 1.16.2.2 1999/09/13 22:12:03 he Exp $ */
+/* $NetBSD: main.c,v 1.16.2.3 1999/12/20 15:35:49 he Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char *rcsid = "from FreeBSD Id: main.c,v 1.14 1997/10/08 07:47:26 charnier Exp";
#else
-__RCSID("$NetBSD: main.c,v 1.16.2.2 1999/09/13 22:12:03 he Exp $");
+__RCSID("$NetBSD: main.c,v 1.16.2.3 1999/12/20 15:35:49 he Exp $");
#endif
#endif
@@ -38,7 +38,7 @@
#include "lib.h"
#include "info.h"
-static char Options[] = "aBbcDde:fFIikLl:mpqRrvh";
+static char Options[] = "aBbcDde:fFhIikLl:mpqRrsSv";
int Flags = 0;
Boolean AllInstalled = FALSE;
@@ -156,12 +156,20 @@
Flags |= SHOW_REQUIRE;
break;
+ case 's':
+ Flags |= SHOW_PKG_SIZE;
+ break;
+
+ case 'S':
+ Flags |= SHOW_ALL_SIZE;
+ break;
+
case 'v':
Verbose = TRUE;
/* Reasonable definition of 'everything' */
Flags = SHOW_COMMENT | SHOW_DESC | SHOW_PLIST | SHOW_INSTALL |
SHOW_DEINSTALL | SHOW_REQUIRE | SHOW_DISPLAY | SHOW_MTREE |
- SHOW_REQBY | SHOW_DEPENDS;
+ SHOW_REQBY | SHOW_DEPENDS | SHOW_PKG_SIZE | SHOW_ALL_SIZE;
break;
case 'h':
Home |
Main Index |
Thread Index |
Old Index