aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAndré Draszik <git@andred.net>2017-11-16 09:21:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-11-29 23:35:01 +0000
commit2ba8a6b25ccc12e7b543e8450121e5311c7a701d (patch)
treec6a9ab271a549eb3eff7c88663fd0e9bd375fe90 /lib
parent8c487176d311557031cedba76185f14f0e7a14cd (diff)
downloadbitbake-2ba8a6b25ccc12e7b543e8450121e5311c7a701d.zip
bitbake-2ba8a6b25ccc12e7b543e8450121e5311c7a701d.tar.gz
bitbake-2ba8a6b25ccc12e7b543e8450121e5311c7a701d.tar.bz2
fetch2: fix unpack of .txz files
.txz is the same as .tar.xz, and can be found in the wild. Signed-off-by: André Draszik <git@andred.net> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py
index f70f1b5..cb94bf6 100644
--- a/lib/bb/fetch2/__init__.py
+++ b/lib/bb/fetch2/__init__.py
@@ -1424,7 +1424,7 @@ class FetchMethod(object):
cmd = 'gzip -dc %s > %s' % (file, efile)
elif file.endswith('.bz2'):
cmd = 'bzip2 -dc %s > %s' % (file, efile)
- elif file.endswith('.tar.xz'):
+ elif file.endswith('.txz') or file.endswith('.tar.xz'):
cmd = 'xz -dc %s | tar x --no-same-owner -f -' % file
elif file.endswith('.xz'):
cmd = 'xz -dc %s > %s' % (file, efile)