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 Pull in rev 1.49 of pe...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/53c5b46f1e46
branches:  trunk
changeset: 461091:53c5b46f1e46
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Wed Sep 10 17:31:49 2003 +0000

description:
Pull in rev 1.49 of perform.c from src/usr.sbin/pkg_install/info.  This
fixes a bug where the pkg_dbdir could no longer be a symlink to a
directory.

diffstat:

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

diffs (27 lines):

diff -r 6cb3db755184 -r 53c5b46f1e46 pkgtools/pkg_install/files/info/perform.c
--- a/pkgtools/pkg_install/files/info/perform.c Wed Sep 10 17:31:40 2003 +0000
+++ b/pkgtools/pkg_install/files/info/perform.c Wed Sep 10 17:31:49 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.10 2003/09/09 13:34:21 jlam Exp $        */
+/*     $NetBSD: perform.c,v 1.11 2003/09/10 17:31:49 jlam Exp $        */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -11,7 +11,7 @@
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.10 2003/09/09 13:34:21 jlam Exp $");
+__RCSID("$NetBSD: perform.c,v 1.11 2003/09/10 17:31:49 jlam Exp $");
 #endif
 #endif
 
@@ -343,7 +343,7 @@
        if (CheckPkg) {
                err_cnt += CheckForPkg(CheckPkg, dbdir);
        } else if (AllInstalled) {
-               if (!isdir(dbdir))
+               if (!(isdir(dbdir) || islinktodir(dbdir)))
                        return 1;
 
                if (File2Pkg) {



Home | Main Index | Thread Index | Old Index