pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkglint/files - Instead of only allowing the ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0f9ebe7616de
branches:  trunk
changeset: 506854:0f9ebe7616de
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Sun Jan 22 23:35:04 2006 +0000

description:
- Instead of only allowing the :Q modifier for quoting, allow any modifier
  that ends in :Q.
- When NO_CONFIGURE ist defined, REPLACE_PERL does not work.

diffstat:

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

diffs (31 lines):

diff -r 52ec4fadf1c8 -r 0f9ebe7616de pkgtools/pkglint/files/pkglint.pl
--- a/pkgtools/pkglint/files/pkglint.pl Sun Jan 22 23:15:31 2006 +0000
+++ b/pkgtools/pkglint/files/pkglint.pl Sun Jan 22 23:35:04 2006 +0000
@@ -1,5 +1,5 @@
 #! @PERL@
-# $NetBSD: pkglint.pl,v 1.478 2006/01/20 13:33:37 rillig Exp $
+# $NetBSD: pkglint.pl,v 1.479 2006/01/22 23:35:04 rillig Exp $
 #
 
 # pkglint - static analyzer and checker for pkgsrc packages
@@ -2107,7 +2107,7 @@
                        if (!$opt_warn_quoting) {
                                # Skip the following checks.
 
-                       } elsif ($state == SWST_PLAIN && defined($mod) && $mod eq ":Q") {
+                       } elsif ($state == SWST_PLAIN && defined($mod) && $mod =~ qr":Q$") {
                                # Fine.
 
                        } else {
@@ -3542,6 +3542,11 @@
                }
        }
 
+       if (exists($makevar->{"REPLACE_PERL"}) && exists($makevar->{"NO_CONFIGURE"})) {
+               $makevar->{"REPLACE_PERL"}->log_warning("REPLACE_PERL is ignored when ...");
+               $makevar->{"NO_CONFIGURE"}->log_warning("... NO_CONFIGURE is set.");
+       }
+
        # check DISTFILES and related items.
        $distname     = expand_variable($whole, "DISTNAME");
        $pkgname      = expand_variable($whole, "PKGNAME");



Home | Main Index | Thread Index | Old Index