summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-12-01 14:14:49 +0000
committerrillig <rillig@pkgsrc.org>2005-12-01 14:14:49 +0000
commitb6c7e3f3b130d850cd42f0c78b7c21bbf824a12d (patch)
treee74b6d8ecda72e87b363ed799fa3c8a5415eedfd /pkgtools/pkglint
parentdc15fda19c99071d1d8f983f48630362f2b90eed (diff)
downloadpkgsrc-b6c7e3f3b130d850cd42f0c78b7c21bbf824a12d.tar.gz
Bugfix for revision 1.402, in which the check for relative pathnames has
been rewritten.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl4
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.");
}