diff options
author | André Draszik <git@andred.net> | 2017-11-16 09:21:44 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-29 23:35:01 +0000 |
commit | 2ba8a6b25ccc12e7b543e8450121e5311c7a701d (patch) | |
tree | c6a9ab271a549eb3eff7c88663fd0e9bd375fe90 /lib | |
parent | 8c487176d311557031cedba76185f14f0e7a14cd (diff) | |
download | bitbake-2ba8a6b25ccc12e7b543e8450121e5311c7a701d.tar.gz |
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__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index f70f1b515..cb94bf600 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) |