pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files Improved diagnostic of the warn...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/222f7b264788
branches:  trunk
changeset: 504324:222f7b264788
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Fri Dec 09 08:40:40 2005 +0000

description:
Improved diagnostic of the warning for @comment in variables.

diffstat:

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

diffs (21 lines):

diff -r c2eb50fa0856 -r 222f7b264788 pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Fri Dec 09 07:12:28 2005 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Fri Dec 09 08:40:40 2005 +0000
@@ -11,7 +11,7 @@
 # Freely redistributable.  Absolutely no warranty.
 #
 # From Id: portlint.pl,v 1.64 1998/02/28 02:34:05 itojun Exp
-# $NetBSD: pkglint.pl,v 1.434 2005/12/08 21:13:49 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.435 2005/12/09 08:40:40 rillig Exp $
 #
 # This version contains lots of changes necessary for NetBSD packages
 # done by:
@@ -2184,7 +2184,7 @@
        }
 
        if ($value =~ qr"^[^=]\@comment") {
-               $line->log_warning("Please don't use \@comment in variables.");
+               $line->log_warning("Please don't use \@comment in ${varname}.");
                $line->explain(
                        "Here you are defining a variable containing \@comment. As this value",
                        "typically includes a space as the last character you probably also used",



Home | Main Index | Thread Index | Old Index