From b527db80252906ff0c7c01b3b3438de2e48e0766 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Mon, 16 May 2011 19:41:14 +0000 Subject: lib/oe/unpack.py: unpack rar archives Signed-off-by: Andreas Oberritter Acked-by: Paul Menzel --- lib/oe/unpack.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/oe/unpack.py b/lib/oe/unpack.py index 8e8bf36408..fa517d83b4 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): -- cgit 1.2.3-korg