Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/usr.sbin/pkg_install/lib Pullup rev 1.36-1.37 (requeste...
details: https://anonhg.NetBSD.org/src/rev/a2d169c606c6
branches: netbsd-1-6
changeset: 530092:a2d169c606c6
user: jmc <jmc%NetBSD.org@localhost>
date: Sat Feb 08 07:54:07 2003 +0000
description:
Pullup rev 1.36-1.37 (requested by abs in ticket #1141)
Catchup to -current as of version 20030202.
diffstat:
usr.sbin/pkg_install/lib/plist.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 04722cf3e33e -r a2d169c606c6 usr.sbin/pkg_install/lib/plist.c
--- a/usr.sbin/pkg_install/lib/plist.c Sat Feb 08 07:53:53 2003 +0000
+++ b/usr.sbin/pkg_install/lib/plist.c Sat Feb 08 07:54:07 2003 +0000
@@ -1,11 +1,11 @@
-/* $NetBSD: plist.c,v 1.32.2.2 2002/07/21 04:43:11 lukem Exp $ */
+/* $NetBSD: plist.c,v 1.32.2.3 2003/02/08 07:54:07 jmc Exp $ */
#include <sys/cdefs.h>
#ifndef lint
#if 0
static const char *rcsid = "from FreeBSD Id: plist.c,v 1.24 1997/10/08 07:48:15 charnier Exp";
#else
-__RCSID("$NetBSD: plist.c,v 1.32.2.2 2002/07/21 04:43:11 lukem Exp $");
+__RCSID("$NetBSD: plist.c,v 1.32.2.3 2003/02/08 07:54:07 jmc Exp $");
#endif
#endif
@@ -331,8 +331,8 @@
Boolean preserve;
char tmp[FILENAME_MAX], *name = NULL;
- if (pkgdb_open(0) == -1) {
- err(1, "cannot open pkgdb");
+ if (!pkgdb_open(ReadWrite)) {
+ err(EXIT_FAILURE, "cannot open pkgdb");
}
preserve = find_plist_option(pkg, "preserve") ? TRUE : FALSE;
Home |
Main Index |
Thread Index |
Old Index