summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/fetch/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index fec9c6ed79..f52b0acfc7 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -126,8 +126,7 @@ def uri_replace(uri, uri_find, uri_replace, d):
126 for i in uri_find_decoded: 126 for i in uri_find_decoded:
127 loc = uri_find_decoded.index(i) 127 loc = uri_find_decoded.index(i)
128 result_decoded[loc] = uri_decoded[loc] 128 result_decoded[loc] = uri_decoded[loc]
129 import types 129 if isinstance(i, basestring):
130 if type(i) == types.StringType:
131 if (re.match(i, uri_decoded[loc])): 130 if (re.match(i, uri_decoded[loc])):
132 result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc]) 131 result_decoded[loc] = re.sub(i, uri_replace_decoded[loc], uri_decoded[loc])
133 if uri_find_decoded.index(i) == 2: 132 if uri_find_decoded.index(i) == 2: