summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/taskdata.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/taskdata.py')
-rw-r--r--bitbake/lib/bb/taskdata.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index d13a124983..ffbaf362e8 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/lib/bb/taskdata.py
@@ -21,8 +21,13 @@ def re_match_strings(target, strings):
21 Whether or not the string 'target' matches 21 Whether or not the string 'target' matches
22 any one string of the strings which can be regular expression string 22 any one string of the strings which can be regular expression string
23 """ 23 """
24 return any(name == target or re.match(name, target) 24 for name in strings:
25 for name in strings) 25 if name.startswith("^") or name.endswith("$"):
26 if re.match(name, target):
27 return True
28 elif name == target:
29 return True
30 return False
26 31
27class TaskEntry: 32class TaskEntry:
28 def __init__(self): 33 def __init__(self):