summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index f81b845e4d..88905f9b4b 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -217,7 +217,7 @@ def uri_replace(ud, uri_find, uri_replace, d):
217 basename = os.path.basename(ud.mirrortarball) 217 basename = os.path.basename(ud.mirrortarball)
218 # Kill parameters, they make no sense for mirror tarballs 218 # Kill parameters, they make no sense for mirror tarballs
219 uri_decoded[5] = {} 219 uri_decoded[5] = {}
220 elif ud.localpath: 220 elif ud.localpath and ud.method.supports_checksum(ud):
221 basename = os.path.basename(ud.localpath) 221 basename = os.path.basename(ud.localpath)
222 if basename and not result_decoded[loc].endswith(basename): 222 if basename and not result_decoded[loc].endswith(basename):
223 result_decoded[loc] = os.path.join(result_decoded[loc], basename) 223 result_decoded[loc] = os.path.join(result_decoded[loc], basename)