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