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 Whee... pkgdb_remove_pk...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6de9f7251bbd
branches:  trunk
changeset: 460943:6de9f7251bbd
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Mon Sep 08 05:58:10 2003 +0000

description:
Whee... pkgdb_remove_pkg returns 1 on success, so make the dummy function
return this value.

diffstat:

 pkgtools/pkg_install/files/lib/pkgdb.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ddbb0259a112 -r 6de9f7251bbd pkgtools/pkg_install/files/lib/pkgdb.c
--- a/pkgtools/pkg_install/files/lib/pkgdb.c    Mon Sep 08 05:32:56 2003 +0000
+++ b/pkgtools/pkg_install/files/lib/pkgdb.c    Mon Sep 08 05:58:10 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pkgdb.c,v 1.17 2003/09/08 05:32:56 jlam Exp $  */
+/*     $NetBSD: pkgdb.c,v 1.18 2003/09/08 05:58:10 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.17 2003/09/08 05:32:56 jlam Exp $");
+__RCSID("$NetBSD: pkgdb.c,v 1.18 2003/09/08 05:58:10 jlam Exp $");
 #endif
 
 /*
@@ -263,7 +263,7 @@
 char   *pkgdb_retrieve(const char *key) { return NULL; }
 void   pkgdb_dump(void) {}
 int    pkgdb_remove(const char *key) { return 0; }
-int    pkgdb_remove_pkg(const char *pkg) { return 0; }
+int    pkgdb_remove_pkg(const char *pkg) { return 1; }
 
 #endif /* HAVE_DBOPEN */
 



Home | Main Index | Thread Index | Old Index