summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 27fcc3cf76..02a36b523d 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -203,7 +203,10 @@ def uri_replace(ud, uri_find, uri_replace, d):
203 result_decoded[loc] = uri_decoded[loc] 203 result_decoded[loc] = uri_decoded[loc]
204 if isinstance(i, basestring): 204 if isinstance(i, basestring):
205 if (re.match(i, uri_decoded[loc])): 205 if (re.match(i, uri_decoded[loc])):
206 result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc]) 206 if not uri_replace_decoded[loc]:
207 result_decoded[loc] = ""
208 else:
209 result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc])
207 if uri_find_decoded.index(i) == 2: 210 if uri_find_decoded.index(i) == 2:
208 if ud.mirrortarball: 211 if ud.mirrortarball:
209 result_decoded[loc] = os.path.join(os.path.dirname(result_decoded[loc]), os.path.basename(ud.mirrortarball)) 212 result_decoded[loc] = os.path.join(os.path.dirname(result_decoded[loc]), os.path.basename(ud.mirrortarball))