summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb')
-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 baf668d9a5..f81b845e4d 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -212,8 +212,11 @@ def uri_replace(ud, uri_find, uri_replace, d):
212 if loc == 2: 212 if loc == 2:
213 # Handle path manipulations 213 # Handle path manipulations
214 basename = None 214 basename = None
215 if ud.mirrortarball: 215 if uri_decoded[0] != uri_replace_decoded[0] and ud.mirrortarball:
216 # If the source and destination url types differ, must be a mirrortarball mapping
216 basename = os.path.basename(ud.mirrortarball) 217 basename = os.path.basename(ud.mirrortarball)
218 # Kill parameters, they make no sense for mirror tarballs
219 uri_decoded[5] = {}
217 elif ud.localpath: 220 elif ud.localpath:
218 basename = os.path.basename(ud.localpath) 221 basename = os.path.basename(ud.localpath)
219 if basename and not result_decoded[loc].endswith(basename): 222 if basename and not result_decoded[loc].endswith(basename):