diff options
-rw-r--r-- | bitbake-dev/lib/bb/providers.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/providers.py | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/bitbake-dev/lib/bb/providers.py b/bitbake-dev/lib/bb/providers.py index 879f1a00b2..8970fb3be1 100644 --- a/bitbake-dev/lib/bb/providers.py +++ b/bitbake-dev/lib/bb/providers.py | |||
@@ -299,11 +299,10 @@ def getRuntimeProviders(dataCache, rdepend): | |||
299 | 299 | ||
300 | # Only search dynamic packages if we can't find anything in other variables | 300 | # Only search dynamic packages if we can't find anything in other variables |
301 | for pattern in dataCache.packages_dynamic: | 301 | for pattern in dataCache.packages_dynamic: |
302 | 302 | pattern = pattern.replace('+', "\+") | |
303 | if pattern in regexp_cache: | 303 | if pattern in regexp_cache: |
304 | regexp = regexp_cache[pattern] | 304 | regexp = regexp_cache[pattern] |
305 | else: | 305 | else: |
306 | pattern = pattern.replace('+', "\+") | ||
307 | try: | 306 | try: |
308 | regexp = re.compile(pattern) | 307 | regexp = re.compile(pattern) |
309 | except: | 308 | except: |
diff --git a/bitbake/lib/bb/providers.py b/bitbake/lib/bb/providers.py index 5785b704ed..dac0b9abf2 100644 --- a/bitbake/lib/bb/providers.py +++ b/bitbake/lib/bb/providers.py | |||
@@ -299,11 +299,10 @@ def getRuntimeProviders(dataCache, rdepend): | |||
299 | 299 | ||
300 | # Only search dynamic packages if we can't find anything in other variables | 300 | # Only search dynamic packages if we can't find anything in other variables |
301 | for pattern in dataCache.packages_dynamic: | 301 | for pattern in dataCache.packages_dynamic: |
302 | 302 | pattern = pattern.replace('+', "\+") | |
303 | if pattern in regexp_cache: | 303 | if pattern in regexp_cache: |
304 | regexp = regexp_cache[pattern] | 304 | regexp = regexp_cache[pattern] |
305 | else: | 305 | else: |
306 | pattern = pattern.replace('+', "\+") | ||
307 | try: | 306 | try: |
308 | regexp = re.compile(pattern) | 307 | regexp = re.compile(pattern) |
309 | except: | 308 | except: |