summaryrefslogtreecommitdiffstats
path: root/lib/bb/taskdata.py
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-23 15:30:45 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-08 22:24:20 -0700
commit5670134ab2eb573d39df3c3231677cdb1a1dfc72 (patch)
tree730011c655814084a477c66c409ba49695f781cc /lib/bb/taskdata.py
parente48e9a2150ee76aaf151f6d5bc9e86e6ae4de514 (diff)
downloadbitbake-5670134ab2eb573d39df3c3231677cdb1a1dfc72.tar.gz
cooker: use re match, not search in re_match_strings
We want to match the requested pattern at the beginning of the string, otherwise things behave in an unintuitive manner wrt ASSUME_PROVIDED (e.g. ASSUME_PROVIDED += "gtk+" will also assume foo-gtk+ is provided), and the user can always use '.*gtk+' to get the old behavior. Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/bb/taskdata.py')
-rw-r--r--lib/bb/taskdata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/taskdata.py b/lib/bb/taskdata.py
index d2a350578..81a42b7b5 100644
--- a/lib/bb/taskdata.py
+++ b/lib/bb/taskdata.py
@@ -34,7 +34,7 @@ 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.search(name, target) != None
+ return any(name == target or re.match(name, target)
for name in strings)
class TaskData: