[rtems commit] build: Use exact match by default for BSP names

Sebastian Huber sebh at rtems.org
Fri Oct 2 14:30:02 UTC 2020


Module:    rtems
Branch:    master
Commit:    f53712a0e39be59773d171da8cd281d98f16bed2
Changeset: http://git.rtems.org/rtems/commit/?id=f53712a0e39be59773d171da8cd281d98f16bed2

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Oct  2 16:28:25 2020 +0200

build: Use exact match by default for BSP names

Update #3818.

---

 wscript | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wscript b/wscript
index 1670acf..ce71efc 100755
--- a/wscript
+++ b/wscript
@@ -688,7 +688,7 @@ class OptionItem(Item):
     @staticmethod
     def _is_variant(variants, variant):
         for pattern in variants:
-            if re.search("^" + pattern + "$", variant):
+            if re.match(pattern + "$", variant):
                 return True
         return False
 
@@ -1499,7 +1499,7 @@ def is_in_white_list(variant, white_list):
     if not white_list:
         return True
     for pattern in white_list:
-        if re.search(pattern, variant):
+        if re.match(pattern + "$", variant):
             return True
     return False
 



More information about the vc mailing list