summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index f97eaf4399..599ea8c822 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1201,9 +1201,9 @@ class FetchMethod(object):
1201 bb.fatal("Invalid value for 'unpack' parameter for %s: %s" % 1201 bb.fatal("Invalid value for 'unpack' parameter for %s: %s" %
1202 (file, urldata.parm.get('unpack'))) 1202 (file, urldata.parm.get('unpack')))
1203 1203
1204 dots = file.split(".") 1204 base, ext = os.path.splitext(file)
1205 if dots[-1] in ['gz', 'bz2', 'Z', 'xz', 'lz']: 1205 if ext in ['.gz', '.bz2', '.Z', '.xz', '.lz']:
1206 efile = os.path.join(rootdir, os.path.basename('.'.join(dots[0:-1]))) 1206 efile = os.path.join(rootdir, os.path.basename(base))
1207 else: 1207 else:
1208 efile = file 1208 efile = file
1209 cmd = None 1209 cmd = None