pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Absolute pathnames may appear i...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0b1234b30554
branches:  trunk
changeset: 520464:0b1234b30554
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Oct 22 05:25:35 2006 +0000

description:
Absolute pathnames may appear in the form basedirvar + '/man1' in source
code.

diffstat:

 pkgtools/pkglint/files/pkglint.pl |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (20 lines):

diff -r 0219a841e603 -r 0b1234b30554 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sun Oct 22 05:15:32 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sun Oct 22 05:25:35 2006 +0000
@@ -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 @@
                } elsif ($string !~ qr"^/\w") {
                        # Assume that pathnames start with a letter or digit.
 
+               } elsif ($before =~ qr"\+\s*[\"']$") {
+                       # Something like foodir + '/lib'
+
                } else {
                        $abspath = $string;
                }



Home | Main Index | Thread Index | Old Index