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:41:43 +0000 |
| commit | 8a0d9d9bc41891440c9ec8f342df6c786e7414a9 (patch) | |
| tree | 3f93f3c3377be0b3aca000a2c88dfccdf6926946 /bitbake/lib/bb/fetch2 | |
| parent | 72867393fe2004ab9f0ee23eb09a975c82938b9e (diff) | |
| download | poky-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/bb/fetch2')
| -rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
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) |
