All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dick Hollenbeck <dick@softplc.com>
To: openembedded-devel@lists.openembedded.org
Subject: [PATCH] enhance lib/oe/unpack.py for ".tar.lzma" files
Date: Tue, 26 Jul 2011 12:59:37 -0500	[thread overview]
Message-ID: <4E2F0089.2020103@softplc.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

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.)



[-- Attachment #2: 0008-unpack.patch --]
[-- Type: text/x-patch, Size: 647 bytes --]

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))

             reply	other threads:[~2011-07-26 18:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-26 17:59 Dick Hollenbeck [this message]
2011-07-26 21:45 ` [PATCH] enhance lib/oe/unpack.py for ".tar.lzma" files Paul Menzel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E2F0089.2020103@softplc.com \
    --to=dick@softplc.com \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.