pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Bugfix for revision 1.402, in w...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/972064389cd5
branches:  trunk
changeset: 503854:972064389cd5
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Thu Dec 01 14:14:49 2005 +0000

description:
Bugfix for revision 1.402, in which the check for relative pathnames has
been rewritten.

diffstat:

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

diffs (21 lines):

diff -r 93719378f128 -r 972064389cd5 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Thu Dec 01 14:07:23 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Thu Dec 01 14:14:49 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.402 2005/12/01 14:01:59 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.403 2005/12/01 14:14:49 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -1154,7 +1154,7 @@
        if (!$is_wip && $path =~ qr"/wip/") {
                $line->log_error("A pkgsrc package must not depend on any outside package.");
        }
-       ($fname = $path) =~ s/^\.\.\/\.\.\//${pkgsrcdir}\//;
+       ($fname = "${current_dir}/${path}") =~ s/^\.\.\/\.\.\//${pkgsrcdir}\//;
        if (!-d $fname && !-f $fname) {
                $line->log_error("\"${path}\" does not exist.");
        }



Home | Main Index | Thread Index | Old Index