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 | 11b91ee6d219d09f6dcd8f5fb4ad56402fe03e67 (patch) | |
tree | 47dcd40504cce04830882e6155db6fdf19e05478 /pkgtools | |
parent | 0ee1bbe5093abfdc36c499249d51b43950b10a62 (diff) | |
download | pkgsrc-11b91ee6d219d09f6dcd8f5fb4ad56402fe03e67.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')
-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 |