summaryrefslogtreecommitdiff
path: root/pkgtools/pkglint
diff options
context:
space:
mode:
authorrillig <rillig>2006-10-22 05:25:35 +0000
committerrillig <rillig>2006-10-22 05:25:35 +0000
commit1a8766ceca6faa672bd3e72477d3c66df42b414c (patch)
tree1a8428b47c744adbfb2988841593365cb03397dd /pkgtools/pkglint
parentae99827a8cad2ca324102854042f5162e3232956 (diff)
downloadpkgsrc-1a8766ceca6faa672bd3e72477d3c66df42b414c.tar.gz
Absolute pathnames may appear in the form basedirvar + '/man1' in source
code.
Diffstat (limited to 'pkgtools/pkglint')
-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;
}