summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-11-23 15:30:45 -0700
committerRichard Purdie <rpurdie@linux.intel.com>2011-01-04 14:46:47 +0000
commit72c6953488149f1c1fe93a1191f5aa88e6f128de (patch)
treedf2925f2a2c433b910abc0cf50043966e81508db /bitbake/lib/bb
parent431160caf1fffaf223d50ef6239d666f69b0e4a4 (diff)
downloadopenembedded-core-72c6953488149f1c1fe93a1191f5aa88e6f128de.tar.gz
openembedded-core-72c6953488149f1c1fe93a1191f5aa88e6f128de.tar.bz2
openembedded-core-72c6953488149f1c1fe93a1191f5aa88e6f128de.tar.xz
openembedded-core-72c6953488149f1c1fe93a1191f5aa88e6f128de.zip
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. (Bitbake rev: 5670134ab2eb573d39df3c3231677cdb1a1dfc72) Signed-off-by: Chris Larson <chris_larson@mentor.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/taskdata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/taskdata.py b/bitbake/lib/bb/taskdata.py
index d2a350578..81a42b7b5 100644
--- a/bitbake/lib/bb/taskdata.py
+++ b/bitbake/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: