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 Don't remove any INSTALL scripts. J...
details: https://anonhg.NetBSD.org/src/rev/02c35ff33178
branches: trunk
changeset: 486237:02c35ff33178
user: hubertf <hubertf%NetBSD.org@localhost>
date: Tue May 16 15:59:16 2000 +0000
description:
Don't remove any INSTALL scripts. Just in case someone needs them later
(e.g. to tar up the pkg again, and install it elsewhere).
diffstat:
usr.sbin/pkg_install/add/perform.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diffs (37 lines):
diff -r a6f819dbef31 -r 02c35ff33178 usr.sbin/pkg_install/add/perform.c
--- a/usr.sbin/pkg_install/add/perform.c Tue May 16 14:04:32 2000 +0000
+++ b/usr.sbin/pkg_install/add/perform.c Tue May 16 15:59:16 2000 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: perform.c,v 1.50 2000/04/01 23:31:39 hubertf Exp $ */
+/* $NetBSD: perform.c,v 1.51 2000/05/16 15:59:16 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.50 2000/04/01 23:31:39 hubertf Exp $");
+__RCSID("$NetBSD: perform.c,v 1.51 2000/05/16 15:59:16 hubertf Exp $");
#endif
#endif
@@ -541,7 +541,6 @@
printf("Running install with PRE-INSTALL for %s.\n", PkgName);
if (!Fake && vsystem("./%s %s PRE-INSTALL", INSTALL_FNAME, PkgName)) {
warnx("install script returned error status");
- unlink(INSTALL_FNAME);
code = 1;
goto success; /* nothing to uninstall yet */
}
@@ -570,11 +569,9 @@
printf("Running install with POST-INSTALL for %s.\n", PkgName);
if (!Fake && vsystem("./%s %s POST-INSTALL", INSTALL_FNAME, PkgName)) {
warnx("install script returned error status");
- unlink(INSTALL_FNAME);
code = 1;
goto fail;
}
- unlink(INSTALL_FNAME); /* remove this line to tar up pkg later - HF */
}
/* Time to record the deed? */
Home |
Main Index |
Thread Index |
Old Index