[135918] trunk/base/src/port1.0/portlint.tcl

ryandesign at macports.org ryandesign at macports.org
Wed May 6 17:36:51 PDT 2015


Revision: 135918
          https://trac.macports.org/changeset/135918
Author:   ryandesign at macports.org
Date:     2015-05-06 17:36:50 -0700 (Wed, 06 May 2015)
Log Message:
-----------
portlint.tct: more specific lint check for syntax which needs the compiler_blacklist_versions portgroup; see https://lists.macosforge.org/pipermail/macports-dev/2015-May/030462.html

Modified Paths:
--------------
    trunk/base/src/port1.0/portlint.tcl

Modified: trunk/base/src/port1.0/portlint.tcl
===================================================================
--- trunk/base/src/port1.0/portlint.tcl	2015-05-06 23:11:32 UTC (rev 135917)
+++ trunk/base/src/port1.0/portlint.tcl	2015-05-07 00:36:50 UTC (rev 135918)
@@ -289,8 +289,8 @@
             incr warnings
         }
 
-        if {[regexp {compiler\.blacklist.*\{} $line] && ![info exists portgroups(compiler_blacklist_versions)]} {
-            ui_error "Line $lineno uses compiler.blacklist in a way that requires the compiler_blacklist_versions portgroup, but this portgroup has not been included"
+        if {[regexp {compiler\.blacklist(?:-[a-z]+)?\s.*(["{]\S+(?:\s+\S+){2,}["}])} $line -> blacklist] && ![info exists portgroups(compiler_blacklist_versions)]} {
+            ui_error "Line $lineno uses compiler.blacklist entry $blacklist which requires the compiler_blacklist_versions portgroup which has not been included"
             incr errors
         }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150506/61eeef66/attachment.html>


More information about the macports-changes mailing list