Inverted a test by mistake.
This commit is contained in:
parent
919da6bf44
commit
7297f559c5
|
@ -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 @@ add_to_list_fn(const char *pkg, void *vp)
|
|||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue