From patchwork Tue Jul 26 17:59:37 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: enhance lib/oe/unpack.py for ".tar.lzma" files Date: Tue, 26 Jul 2011 17:59:37 -0000 From: Dick Hollenbeck X-Patchwork-Id: 8573 Message-Id: <4E2F0089.2020103@softplc.com> To: openembedded-devel@lists.openembedded.org The boys a mingw started packaging binutils as .tar.lzma files. This is the only trick I found to unpack them. It works. (I am trying to revitalize canadian-sdk at newer component versions.) 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))