* [PATCH v2] unpack.py: add support for .tar.lzma
@ 2011-07-27 19:23 Dick Hollenbeck
0 siblings, 0 replies; only message in thread
From: Dick Hollenbeck @ 2011-07-27 19:23 UTC (permalink / raw)
To: openembedded-devel; +Cc: Dick Hollenbeck
* 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(-)
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))
--
1.7.0.4
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-27 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-27 19:23 [PATCH v2] unpack.py: add support for .tar.lzma Dick Hollenbeck
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.