[oe-commits] [bitbake] branch master updated: fetch2: fix unpack of .txz files

git at git.openembedded.org git at git.openembedded.org
Wed Nov 29 23:43:58 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository bitbake.

The following commit(s) were added to refs/heads/master by this push:
     new 2ba8a6b  fetch2: fix unpack of .txz files
2ba8a6b is described below

commit 2ba8a6b25ccc12e7b543e8450121e5311c7a701d
Author: André Draszik <git at andred.net>
AuthorDate: Thu Nov 16 09:21:44 2017 +0000

    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 at andred.net>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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)

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list