diff options
author | rillig <rillig@pkgsrc.org> | 2006-01-02 03:02:29 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2006-01-02 03:02:29 +0000 |
commit | c73c3559af0df4c75b66213b1a6dff6cbcde5e01 (patch) | |
tree | 47dcd40504cce04830882e6155db6fdf19e05478 /pkgtools/pkglint | |
parent | 25738a7f43da5cb9743a2a61829db1878642a5bf (diff) | |
download | pkgsrc-c73c3559af0df4c75b66213b1a6dff6cbcde5e01.tar.gz |
- Fixed the wording of the message when CONFIGURE_DIRS and friends are
prefixed with ${WRKSRC}. It had been plainly wrong.
Diffstat (limited to 'pkgtools/pkglint')
-rw-r--r-- | pkgtools/pkglint/files/pkglint.pl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgtools/pkglint/files/pkglint.pl b/pkgtools/pkglint/files/pkglint.pl index 65a79c2852c..930e1bd2451 100644 --- a/pkgtools/pkglint/files/pkglint.pl +++ b/pkgtools/pkglint/files/pkglint.pl @@ -1,5 +1,5 @@ #! @PERL@ -w -# $NetBSD: pkglint.pl,v 1.447 2006/01/02 01:20:31 rillig Exp $ +# $NetBSD: pkglint.pl,v 1.448 2006/01/02 03:02:29 rillig Exp $ # # pkglint - static analyzer and checker for pkgsrc packages @@ -2246,9 +2246,9 @@ sub checkline_mk_vartype_basic($$$$$) { # TODO: check for ${WRKDIR}/${DISTNAME}/foo } elsif ($type eq "WrksrcSubdirectory") { - if ($value =~ qr"^(\$\{WRKSRC\}(?:/|$))") { - my ($prefix) = ($1); - $line->log_note("The \"${prefix}\" prefix is not needed here."); + if ($value =~ qr"^(\$\{WRKSRC\})(?:/(.*))?") { + my ($prefix, $rest) = ($1, $2); + $line->log_note("You can use \"" . (defined($rest) ? $rest : ".") . "\" instead of \"${value}\"."); } elsif ($value ne "" && $value_novar eq "") { # The value of another variable |