aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Oberritter <obi@opendreambox.org>2011-05-16 19:41:14 +0000
committerAndreas Oberritter <obi@opendreambox.org>2011-05-23 16:05:22 +0200
commitb527db80252906ff0c7c01b3b3438de2e48e0766 (patch)
tree8f06e9bdf337030f3a9b21ed16a0b16d4fa66493
parent063c182297c4e599581cbc8408964d6534aa18c6 (diff)
downloadopenembedded-b527db80252906ff0c7c01b3b3438de2e48e0766.tar.gz
lib/oe/unpack.py: unpack rar archives
Signed-off-by: Andreas Oberritter <obi@opendreambox.org> Acked-by: Paul Menzel <paulepanter@users.sourceforge.net>
-rw-r--r--lib/oe/unpack.py2
1 files changed, 2 insertions, 0 deletions
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):