Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/pkg_install/add Also move the +SIZE files into plac...



details:   https://anonhg.NetBSD.org/src/rev/594a4b4ce18f
branches:  trunk
changeset: 480340:594a4b4ce18f
user:      hubertf <hubertf%NetBSD.org@localhost>
date:      Sun Jan 09 17:21:53 2000 +0000

description:
Also move the +SIZE files into place, if a pkg comes with some.

diffstat:

 usr.sbin/pkg_install/add/perform.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r e6753b15355b -r 594a4b4ce18f usr.sbin/pkg_install/add/perform.c
--- a/usr.sbin/pkg_install/add/perform.c        Sun Jan 09 17:21:38 2000 +0000
+++ b/usr.sbin/pkg_install/add/perform.c        Sun Jan 09 17:21:53 2000 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.42 1999/12/01 15:15:29 hubertf Exp $     */
+/*     $NetBSD: perform.c,v 1.43 2000/01/09 17:21:53 hubertf Exp $     */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.44 1997/10/13 15:03:46 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.42 1999/12/01 15:15:29 hubertf Exp $");
+__RCSID("$NetBSD: perform.c,v 1.43 2000/01/09 17:21:53 hubertf Exp $");
 #endif
 #endif
 
@@ -490,6 +490,10 @@
                        move_file(".", DEINSTALL_FNAME, LogDir);
                if (fexists(REQUIRE_FNAME))
                        move_file(".", REQUIRE_FNAME, LogDir);
+               if (fexists(SIZE_PKG_FNAME))
+                       move_file(".", SIZE_PKG_FNAME, LogDir);
+               if (fexists(SIZE_ALL_FNAME))
+                       move_file(".", SIZE_ALL_FNAME, LogDir);
                (void) snprintf(contents, sizeof(contents), "%s/%s", LogDir, CONTENTS_FNAME);
                cfile = fopen(contents, "w");
                if (!cfile) {



Home | Main Index | Thread Index | Old Index