All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] enhance lib/oe/unpack.py for ".tar.lzma" files
@ 2011-07-26 17:59 Dick Hollenbeck
  2011-07-26 21:45 ` Paul Menzel
  0 siblings, 1 reply; 2+ messages in thread
From: Dick Hollenbeck @ 2011-07-26 17:59 UTC (permalink / raw)
  To: openembedded-devel

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] enhance lib/oe/unpack.py for ".tar.lzma" files
  2011-07-26 17:59 [PATCH] enhance lib/oe/unpack.py for ".tar.lzma" files Dick Hollenbeck
@ 2011-07-26 21:45 ` Paul Menzel
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Menzel @ 2011-07-26 21:45 UTC (permalink / raw)
  To: openembedded-devel

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

Am Dienstag, den 26.07.2011, 12:59 -0500 schrieb Dick Hollenbeck:
> 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.)

Please follow the commit policy [1][2]. At least your Signed-off-by line
is missing and the commit summary does not follow the pattern(?).

Please resend your patch as »v2« [3] and update the state of your patch
in the patch queue [4].

Otherwise your patch looks fine. Is it guaranteed that `tar` supports
`lzma`?


Thanks,

Paul


[1] http://openembedded.org/index.php/Commit_Policy
[2] http://openembedded.org/index.php/Commit_log_example
[3] http://openembedded.org/index.php/How_to_submit_a_patch_to_OpenEmbedded
[4] http://openembedded.org/index.php/Patchwork

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 205 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-26 21:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 17:59 [PATCH] enhance lib/oe/unpack.py for ".tar.lzma" files Dick Hollenbeck
2011-07-26 21:45 ` Paul Menzel

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.