diff options
author | rillig <rillig> | 2005-12-01 14:14:49 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-12-01 14:14:49 +0000 |
commit | d043e2b058b49a3c44a1d6b3ee32e493c64c1b50 (patch) | |
tree | e74b6d8ecda72e87b363ed799fa3c8a5415eedfd | |
parent | f7aa9600e33f5cf3ae10b9b9eac5290b3861f1d4 (diff) | |
download | pkgsrc-d043e2b058b49a3c44a1d6b3ee32e493c64c1b50.tar.gz |
Bugfix for revision 1.402, in which the check for relative pathnames has
been rewritten.
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index bb3a16c1668..4896c995c05 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -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 @@ sub checkline_relative_path($$) { 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."); } |