Patchwork [v2] unpack.py: add support for .tar.lzma

login
register
mail settings
Submitter Dick Hollenbeck
Date July 27, 2011, 7:23 p.m.
Message ID <1311794580-20745-1-git-send-email-dick@softplc.com>
Download mbox | patch
Permalink /patch/8727/
State New, archived
Headers show

Comments

Dick Hollenbeck - July 27, 2011, 7:23 p.m.
* invoke tar properly to unpack a file with .tar.lzma extension

Signed-off-by: Dick Hollenbeck <dick@softplc.com>
---
 lib/oe/unpack.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

Patch

diff --git a/lib/oe/unpack.py b/lib/oe/unpack.py
index 8e8bf36..d7e34a7 100644
--- a/lib/oe/unpack.py
+++ b/lib/oe/unpack.py
@@ -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))