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.29 (reques...
details: https://anonhg.NetBSD.org/src/rev/8f303abc9617
branches: netbsd-1-4
changeset: 469922:8f303abc9617
user: he <he%NetBSD.org@localhost>
date: Mon Dec 20 15:36:09 1999 +0000
description:
Pull up revision 1.29 (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/perform.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 8d103ac0da50 -r 8f303abc9617 usr.sbin/pkg_install/info/perform.c
--- a/usr.sbin/pkg_install/info/perform.c Mon Dec 20 15:35:49 1999 +0000
+++ b/usr.sbin/pkg_install/info/perform.c Mon Dec 20 15:36:09 1999 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: perform.c,v 1.23.2.2 1999/09/13 22:14:30 he Exp $ */
+/* $NetBSD: perform.c,v 1.23.2.3 1999/12/20 15:36:09 he Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp";
#else
-__RCSID("$NetBSD: perform.c,v 1.23.2.2 1999/09/13 22:14:30 he Exp $");
+__RCSID("$NetBSD: perform.c,v 1.23.2.3 1999/12/20 15:36:09 he Exp $");
#endif
#endif
@@ -199,6 +199,12 @@
if ((Flags & SHOW_BUILD_INFO) && fexists(BUILD_INFO_FNAME)) {
show_file("Build information:\n", BUILD_INFO_FNAME);
}
+ if ((Flags & SHOW_PKG_SIZE) && fexists(SIZE_PKG_FNAME)) {
+ show_file("Size of this package in bytes: ", SIZE_PKG_FNAME);
+ }
+ if ((Flags & SHOW_ALL_SIZE) && fexists(SIZE_ALL_FNAME)) {
+ show_file("Size in bytes including required pkgs: ", SIZE_ALL_FNAME);
+ }
if (!Quiet) {
puts(InfoPrefix);
}
Home |
Main Index |
Thread Index |
Old Index