summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-09-03 11:21:49 +0000
committerRichard Purdie <richard@openedhand.com>2008-09-03 11:21:49 +0000
commitd85997f858798cc5433c80ff564a01ba1d699f84 (patch)
treeeabccddcc70b1e21a800deb94a55448f6d59c056 /bitbake/lib/bb
parent75df7432f45743019149940d0c42ea624f6c9d1a (diff)
downloadopenembedded-core-d85997f858798cc5433c80ff564a01ba1d699f84.tar.gz
openembedded-core-d85997f858798cc5433c80ff564a01ba1d699f84.tar.bz2
openembedded-core-d85997f858798cc5433c80ff564a01ba1d699f84.zip
bitbake providers.py: Sync with upstream
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5125 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/providers.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py
index 0ad5876ef0..3504efc86e 100644
--- a/bitbake/lib/bb/providers.py
+++ b/bitbake/lib/bb/providers.py
@@ -296,7 +296,12 @@ def getRuntimeProviders(dataCache, rdepend):
# Only search dynamic packages if we can't find anything in other variables
for pattern in dataCache.packages_dynamic:
- regexp = re.compile(pattern)
+ pattern = pattern.replace('+', "\+")
+ try:
+ regexp = re.compile(pattern)
+ except:
+ bb.msg.error(bb.msg.domain.Provider, "Error parsing re expression: %s" % pattern)
+ raise
if regexp.match(rdepend):
rproviders += dataCache.packages_dynamic[pattern]