Преглед изворни кода

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>
André Draszik пре 6 година
родитељ
комит
2ba8a6b25c
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/bb/fetch2/__init__.py

+ 1 - 1
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)