diff options
author | rillig <rillig> | 2005-12-01 14:31:24 +0000 |
---|---|---|
committer | rillig <rillig> | 2005-12-01 14:31:24 +0000 |
commit | fb32817cffa9b22e6fa32c42acb0c8d15e3cf9fb (patch) | |
tree | 18235350265540e5842776358d6cbcde11e7fcf6 | |
parent | d043e2b058b49a3c44a1d6b3ee32e493c64c1b50 (diff) | |
download | pkgsrc-fb32817cffa9b22e6fa32c42acb0c8d15e3cf9fb.tar.gz |
... and another fix for the same problem ...
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 4896c995c05..2e4c5928b5f 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.403 2005/12/01 14:14:49 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.404 2005/12/01 14:31:24 rillig Exp $ # # This version contains lots of changes necessary for NetBSD packages # done by: @@ -1155,6 +1155,7 @@ sub checkline_relative_path($$) { $line->log_error("A pkgsrc package must not depend on any outside package."); } ($fname = "${current_dir}/${path}") =~ s/^\.\.\/\.\.\//${pkgsrcdir}\//; + $fname =~ s,\$\{\.CURDIR\},.,; if (!-d $fname && !-f $fname) { $line->log_error("\"${path}\" does not exist."); } |