Skip to contentSkip to conversation

fetch2: fix unpack of .txz files

PATCH New André Draszik 1 participant 1 message Nov 16, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fetch2: fix unpack of .txz files

.txz is the same as .tar.xz, and can be found in the wild.

---
 lib/bb/fetch2/__init__.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/bb/fetch2/__init__.py +1 -1
index f70f1b51..cb94bf60 100644
@@ -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)
Signature · 1 line
2.15.0.rc1