summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig>2005-12-07 18:46:28 +0000
committerrillig <rillig>2005-12-07 18:46:28 +0000
commit81d6aae9287795734ff4ce9e2873847da32c96b8 (patch)
treefaef2f4e87d773a0a4058120280015e6af51e283 /pkgtools
parentf11b304c831864431dfa67840de23a6154f62a65 (diff)
downloadpkgsrc-81d6aae9287795734ff4ce9e2873847da32c96b8.tar.gz
- Added a check that exists if RelativePkgDir exists. Suggested by wiz in
a private mail.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 2ae8acc99c8..eaad3911d71 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.428 2005/12/06 22:07:35 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.429 2005/12/07 18:46:28 rillig Exp $
#
# This version contains lots of changes necessary for NetBSD packages
# done by:
@@ -1842,7 +1842,11 @@ sub checkline_mk_vartype_basic($$$$$) {
$line->log_error("\"${varname}\" is a read-only variable and therefore must not be modified.");
} elsif ($type eq "RelativePkgDir") {
- if ($value !~ qr"^\.\./\.\./[^/]+/[^/]+$") {
+ if ($value =~ qr"^\.\./\.\./[^/]+/[^/]+$") {
+ if (!-d "${current_dir}/${value}") {
+ $line->log_error("The directory \"${value}\" does not exist.");
+ }
+ } else {
$line->log_warning("\"${value}\" is not a valid relative package directory.");
$line->explain(
"A relative package directory always starts with \"../../\", followed",