summaryrefslogtreecommitdiffstats
path: root/bitbake/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:41:43 +0000
commit8a0d9d9bc41891440c9ec8f342df6c786e7414a9 (patch)
tree3f93f3c3377be0b3aca000a2c88dfccdf6926946 /bitbake/lib
parent72867393fe2004ab9f0ee23eb09a975c82938b9e (diff)
downloadpoky-8a0d9d9bc41891440c9ec8f342df6c786e7414a9.tar.gz
bitbake: fetch2: fix unpack of .txz files
.txz is the same as .tar.xz, and can be found in the wild. (Bitbake rev: 2ba8a6b25ccc12e7b543e8450121e5311c7a701d) 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 'bitbake/lib')
-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 f70f1b5157..cb94bf6000 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1424,7 +1424,7 @@ class FetchMethod(object):
1424 cmd = 'gzip -dc %s > %s' % (file, efile) 1424 cmd = 'gzip -dc %s > %s' % (file, efile)
1425 elif file.endswith('.bz2'): 1425 elif file.endswith('.bz2'):
1426 cmd = 'bzip2 -dc %s > %s' % (file, efile) 1426 cmd = 'bzip2 -dc %s > %s' % (file, efile)
1427 elif file.endswith('.tar.xz'): 1427 elif file.endswith('.txz') or file.endswith('.tar.xz'):
1428 cmd = 'xz -dc %s | tar x --no-same-owner -f -' % file 1428 cmd = 'xz -dc %s | tar x --no-same-owner -f -' % file
1429 elif file.endswith('.xz'): 1429 elif file.endswith('.xz'):
1430 cmd = 'xz -dc %s > %s' % (file, efile) 1430 cmd = 'xz -dc %s > %s' % (file, efile)