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/create Pull up revision 1.15-1.16 ...



details:   https://anonhg.NetBSD.org/src/rev/d6738c7ed3f7
branches:  netbsd-1-4
changeset: 469917:d6738c7ed3f7
user:      he <he%NetBSD.org@localhost>
date:      Mon Dec 20 15:34:05 1999 +0000

description:
Pull up revision 1.15-1.16 (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/create/main.c |  20 +++++++++++++++-----
 1 files changed, 15 insertions(+), 5 deletions(-)

diffs (65 lines):

diff -r 74d61edaa508 -r d6738c7ed3f7 usr.sbin/pkg_install/create/main.c
--- a/usr.sbin/pkg_install/create/main.c        Mon Dec 20 15:33:43 1999 +0000
+++ b/usr.sbin/pkg_install/create/main.c        Mon Dec 20 15:34:05 1999 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: main.c,v 1.13.2.1 1999/09/13 22:02:00 he Exp $ */
+/*     $NetBSD: main.c,v 1.13.2.2 1999/12/20 15:34:05 he Exp $ */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: main.c,v 1.17 1997/10/08 07:46:23 charnier Exp";
 #else
-__RCSID("$NetBSD: main.c,v 1.13.2.1 1999/09/13 22:02:00 he Exp $");
+__RCSID("$NetBSD: main.c,v 1.13.2.2 1999/12/20 15:34:05 he Exp $");
 #endif
 #endif
 
@@ -24,12 +24,11 @@
 #include "lib.h"
 #include "create.h"
 
-static char Options[] = "ORhlvFf:p:P:C:c:d:i:k:r:t:X:D:m:s:b:B:";
+static char Options[] = "ORhlvFf:p:P:C:c:d:i:k:L:r:t:X:D:m:s:S:b:B:";
 
 char   *Prefix = NULL;
 char   *Comment = NULL;
 char   *Desc = NULL;
-char   *SrcDir = NULL;
 char   *Display = NULL;
 char   *Install = NULL;
 char   *DeInstall = NULL;
@@ -41,6 +40,9 @@
 char   *Pkgcfl = NULL;
 char   *BuildVersion = NULL;
 char   *BuildInfo = NULL;
+char   *SizePkg = NULL;
+char   *SizeAll = NULL;
+char   *SrcDir = NULL;
 char    PlayPen[FILENAME_MAX];
 size_t  PlayPenSize = sizeof(PlayPen);
 int     Dereference = 0;
@@ -87,7 +89,11 @@
                        break;
 
                case 's':
-                       SrcDir = optarg;
+                       SizePkg = optarg;
+                       break;
+
+               case 'S':
+                       SizeAll = optarg;
                        break;
 
                case 'f':
@@ -114,6 +120,10 @@
                        RelativeLinks = 1;
                        break;
 
+               case 'L':
+                       SrcDir = optarg;
+                       break;
+
                case 'r':
                        Require = optarg;
                        break;



Home | Main Index | Thread Index | Old Index