summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2006-10-22 05:25:35 +0000
committerrillig <rillig@pkgsrc.org>2006-10-22 05:25:35 +0000
commit0e7520ad719d0a49ea9aa7696aa16ef9cb422230 (patch)
tree1a8428b47c744adbfb2988841593365cb03397dd /pkgtools
parentc54fab0b19a3dd5c0f00a35090e1e7af8d74f343 (diff)
downloadpkgsrc-0e7520ad719d0a49ea9aa7696aa16ef9cb422230.tar.gz
Absolute pathnames may appear in the form basedirvar + '/man1' in source
code.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkglint/files/pkglint.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl
index f7b58a9f7c8..677b165d5b7 100644
--- a/pkgtools/pkglint/files/pkglint.pl
+++ b/pkgtools/pkglint/files/pkglint.pl
@@ -1,5 +1,5 @@
#! @PERL@
-# $NetBSD: pkglint.pl,v 1.681 2006/10/17 21:42:46 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.682 2006/10/22 05:25:35 rillig Exp $
#
# pkglint - static analyzer and checker for pkgsrc packages
@@ -3628,6 +3628,9 @@ sub checkline_source_absolute_pathname($$) {
} elsif ($string !~ qr"^/\w") {
# Assume that pathnames start with a letter or digit.
+ } elsif ($before =~ qr"\+\s*[\"']$") {
+ # Something like foodir + '/lib'
+
} else {
$abspath = $string;
}