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.20-1.22 ...



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

description:
Pull up revision 1.20-1.22 (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/perform.c |  20 ++++++++++++++++++--
 1 files changed, 18 insertions(+), 2 deletions(-)

diffs (47 lines):

diff -r d6738c7ed3f7 -r 8faec3ecf879 usr.sbin/pkg_install/create/perform.c
--- a/usr.sbin/pkg_install/create/perform.c     Mon Dec 20 15:34:05 1999 +0000
+++ b/usr.sbin/pkg_install/create/perform.c     Mon Dec 20 15:34:36 1999 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.17.2.2 1999/09/13 22:03:32 he Exp $      */
+/*     $NetBSD: perform.c,v 1.17.2.3 1999/12/20 15:34:36 he Exp $      */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.17.2.2 1999/09/13 22:03:32 he Exp $");
+__RCSID("$NetBSD: perform.c,v 1.17.2.3 1999/12/20 15:34:36 he Exp $");
 #endif
 #endif
 
@@ -127,6 +127,12 @@
        if (BuildInfo) {
                (void) fprintf(totar, "%s\n", BUILD_INFO_FNAME);
        }
+       if (SizePkg) {
+               (void) fprintf(totar, "%s\n", SIZE_PKG_FNAME);
+       }
+       if (SizeAll) {
+               (void) fprintf(totar, "%s\n", SIZE_ALL_FNAME);
+       }
 
        for (p = plist->head; p; p = p->next) {
                if (p->type == PLIST_FILE)
@@ -346,6 +352,16 @@
                add_plist(&plist, PLIST_IGNORE, NULL);
                add_plist(&plist, PLIST_FILE, BUILD_INFO_FNAME);
        }
+       if (SizePkg) {
+               copy_file(home, SizePkg, SIZE_PKG_FNAME);
+               add_plist(&plist, PLIST_IGNORE, NULL);
+               add_plist(&plist, PLIST_FILE, SIZE_PKG_FNAME);
+       }
+       if (SizeAll) {
+               copy_file(home, SizeAll, SIZE_ALL_FNAME);
+               add_plist(&plist, PLIST_IGNORE, NULL);
+               add_plist(&plist, PLIST_FILE, SIZE_ALL_FNAME);
+       }
 
        /* Finally, write out the packing list */
        fp = fopen(CONTENTS_FNAME, "w");



Home | Main Index | Thread Index | Old Index