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/info 1.39 from usr.sbin/pkg...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d2b8b5b7096c
branches:  trunk
changeset: 471234:d2b8b5b7096c
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Mon Mar 22 11:44:24 2004 +0000

description:
1.39 from usr.sbin/pkg_install/info/main.c:
Check pkgdb_open for correct return value.
>From Peter Postma in PR 24863.

diffstat:

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

diffs (27 lines):

diff -r 6bdd0fb9aa14 -r d2b8b5b7096c pkgtools/pkg_install/files/info/main.c
--- a/pkgtools/pkg_install/files/info/main.c    Mon Mar 22 10:25:26 2004 +0000
+++ b/pkgtools/pkg_install/files/info/main.c    Mon Mar 22 11:44:24 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.7 2004/01/06 15:53:41 hubertf Exp $ */
+/*     $NetBSD: main.c,v 1.8 2004/03/22 11:44:24 wiz Exp $     */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -11,7 +11,7 @@
 #if 0
 static char *rcsid = "from FreeBSD Id: main.c,v 1.14 1997/10/08 07:47:26 charnier Exp";
 #else
-__RCSID("$NetBSD: main.c,v 1.7 2004/01/06 15:53:41 hubertf Exp $");
+__RCSID("$NetBSD: main.c,v 1.8 2004/03/22 11:44:24 wiz Exp $");
 #endif
 #endif
 
@@ -242,7 +242,7 @@
 
        /* Get all the remaining package names, if any */
        if (File2Pkg && !AllInstalled)
-               if (pkgdb_open(ReadOnly) == -1) {
+               if (!pkgdb_open(ReadOnly)) {
                        err(EXIT_FAILURE, "cannot open pkgdb");
                }
        while (*argv) {



Home | Main Index | Thread Index | Old Index