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/lib Inverted a test by mistake.



details:   https://anonhg.NetBSD.org/src/rev/417a9d43728a
branches:  trunk
changeset: 551628:417a9d43728a
user:      jlam <jlam%NetBSD.org@localhost>
date:      Tue Sep 09 08:22:39 2003 +0000

description:
Inverted a test by mistake.

diffstat:

 usr.sbin/pkg_install/lib/str.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 94e590fa9b8f -r 417a9d43728a usr.sbin/pkg_install/lib/str.c
--- a/usr.sbin/pkg_install/lib/str.c    Tue Sep 09 07:14:01 2003 +0000
+++ b/usr.sbin/pkg_install/lib/str.c    Tue Sep 09 08:22:39 2003 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: str.c,v 1.44 2003/09/08 22:11:14 jlam Exp $    */
+/*     $NetBSD: str.c,v 1.45 2003/09/09 08:22:39 jlam Exp $    */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "Id: str.c,v 1.5 1997/10/08 07:48:21 charnier Exp";
 #else
-__RCSID("$NetBSD: str.c,v 1.44 2003/09/08 22:11:14 jlam Exp $");
+__RCSID("$NetBSD: str.c,v 1.45 2003/09/09 08:22:39 jlam Exp $");
 #endif
 #endif
 
@@ -644,7 +644,7 @@
        char fn[FILENAME_MAX];
 
        snprintf(fn, sizeof(fn), "%s/%s", _pkgdb_getPKGDB_DIR(), pkg);
-       if (!(isdir(fn) || islinktodir(fn))) {
+       if (isdir(fn) || islinktodir(fn)) {
                lpp = alloc_lpkg(pkg);
                TAILQ_INSERT_TAIL(pkgs, lpp, lp_link);
        }



Home | Main Index | Thread Index | Old Index