From patchwork Mon May 16 11:41:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: lib/oe/unpack.py: unpack rar archives Date: Mon, 16 May 2011 11:41:14 -0000 From: Andreas Oberritter X-Patchwork-Id: 4111 Message-Id: <1305546074-18796-1-git-send-email-obi@opendreambox.org> To: openembedded-devel@lists.openembedded.org Signed-off-by: Andreas Oberritter Acked-by: Paul Menzel --- 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):