pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/lib The pkgdb_* functions s...
details: https://anonhg.NetBSD.org/pkgsrc/rev/22b917ac80bc
branches: trunk
changeset: 460938:22b917ac80bc
user: jlam <jlam%pkgsrc.org@localhost>
date: Mon Sep 08 02:09:04 2003 +0000
description:
The pkgdb_* functions should be no-ops on platforms that don't have the
db*() functions, so make the dummy pkgdb_open() always return 0 for a
successful open of the package dbfile.
diffstat:
pkgtools/pkg_install/files/lib/pkgdb.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 99686ff11a78 -r 22b917ac80bc pkgtools/pkg_install/files/lib/pkgdb.c
--- a/pkgtools/pkg_install/files/lib/pkgdb.c Mon Sep 08 02:07:42 2003 +0000
+++ b/pkgtools/pkg_install/files/lib/pkgdb.c Mon Sep 08 02:09:04 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pkgdb.c,v 1.15 2003/09/08 02:07:42 jlam Exp $ */
+/* $NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 jlam Exp $ */
#if HAVE_CONFIG_H
#include "config.h"
@@ -8,7 +8,7 @@
#include <sys/cdefs.h>
#endif
#ifndef lint
-__RCSID("$NetBSD: pkgdb.c,v 1.15 2003/09/08 02:07:42 jlam Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.16 2003/09/08 02:09:04 jlam Exp $");
#endif
/*
@@ -257,7 +257,7 @@
#else /* !HAVE_DBOPEN */
-int pkgdb_open(int mode) { return -1; }
+int pkgdb_open(int mode) { return 0; }
void pkgdb_close(void) {}
int pkgdb_store(const char *key, const char *val) { return 0; }
char *pkgdb_retrieve(const char *key) { return NULL; }
Home |
Main Index |
Thread Index |
Old Index