pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files When checking for the existence...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3d01ba34cd34
branches:  trunk
changeset: 503097:3d01ba34cd34
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Mon Nov 14 04:47:44 2005 +0000

description:
When checking for the existence of a dependency, use
${pkgsrcdir}/${PKGPATH} instead of ${current_dir}/../../${PKGPATH}.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 53567f395c3a -r 3d01ba34cd34 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Mon Nov 14 04:41:17 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Mon Nov 14 04:47:44 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.351 2005/11/14 04:38:27 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.352 2005/11/14 04:47:44 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1538,7 +1538,7 @@
                                $line->log_error("A pkgsrc package must not depend on any outside package.");
                        }
 
-                       if (!-d "${current_dir}/../../${cat}/${pkg}") {
+                       if (!-d "${pkgsrcdir}/${cat}/${pkg}") {
                                $line->log_error("The package ${cat}/${pkg} does not exist.");
                        }
 



Home | Main Index | Thread Index | Old Index