summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-07-04 09:29:54 +0000
committerrillig <rillig@pkgsrc.org>2006-07-04 09:29:54 +0000
commit6d30df6ae6641579e0511f73c83a4935fba3b89f (patch)
tree7bb217ad5187e99b8c5c0ed0ea0d31761a8217c0 /pkgtools
parent296b295484deac3ebd9e77cd6d9026848b7ab29b (diff)
downloadpkgsrc-6d30df6ae6641579e0511f73c83a4935fba3b89f.tar.gz
Some minor refinements.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index 0d647a0b88f..edd81a17af9 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.635 2006/07/04 09:02:16 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.636 2006/07/04 09:29:54 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -1418,6 +1418,9 @@ sub check_varassign($$$$$) {
}
if ($varparam ne $id) {
+
+ # XXX: This code sometimes produces weird warnings. See
+ # meta-pkgs/xorg/Makefile.common 1.41 for an example.
if ($self->is_complete()) {
$self->check_end();
@@ -4622,7 +4625,7 @@ sub checkline_mk_vartype_basic($$$$$$$$) {
}
if ($p !~ qr"^[\$/]") {
- $line->log_warning("\"${p}\" should be an absolute path.");
+ $line->log_warning("All components of ${varname} (in this case \"${p}\")should be an absolute path.");
}
}
}