Skip to contentSkip to conversation

unpack.py: add support for .tar.lzma

PATCH New Dick Hollenbeck 1 participant 1 message Jul 27, 2011

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 unpack.py: add support for .tar.lzma

* invoke tar properly to unpack a file with .tar.lzma extension

---
 lib/oe/unpack.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
lib/oe/unpack.py +2 -0
index 8e8bf36..d7e34a7 100644
@@ -88,6 +88,8 @@ def unpack_file(file, destdir, parameters, env=None):
             cmd = 'xz -dc %s > %s' % (file, os.path.basename(root))
         elif file.endswith('.tar.lz'):
             cmd = 'lzip -dc %s | tar x --no-same-owner -f -' % file
+        elif file.endswith('.tar.lzma'):
+            cmd = 'tar --lzma --no-same-owner -xf %s' % file
         elif file.endswith('.lz'):
             root, ext = os.path.splitext(file)
             cmd = 'lzip -dc %s > %s' % (file, os.path.basename(root))
Signature · 1 line
1.7.0.4