[oe] [PATCH] lib/oe/unpack.py: unpack rar archives

Paul Menzel paulepanter at users.sourceforge.net
Mon May 16 13:03:27 UTC 2011


Am Montag, den 16.05.2011, 11:41 +0000 schrieb Andreas Oberritter:
> Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
> ---
>  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..fa517d8 100644
> --- a/lib/oe/unpack.py
> +++ b/lib/oe/unpack.py
> @@ -96,6 +96,8 @@ def unpack_file(file, destdir, parameters, env=None):
>              if dos:
>                  cmd = '%s -a' % cmd
>              cmd = "%s '%s'" % (cmd, file)
> +        elif file.endswith('.rar'):
> +            cmd = 'unrar x %s' % file
>  
>      if not unpack or not cmd:
>          if os.path.isdir(file):

1. What program needs this? I am just asking to be able to test this.
2. Will `unrar-native` automatically be build when such an archive is
encountered?

Acked-by: Paul Menzel <paulepanter at users.sourceforge.net>


Thanks,

Paul
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20110516/80326ec1/attachment-0002.sig>


More information about the Openembedded-devel mailing list