[oe-commits] Andreas Oberritter : lib/oe/unpack.py: unpack rar archives

git version control git at git.openembedded.org
Mon May 23 14:06:27 UTC 2011


Module: openembedded.git
Branch: master
Commit: b527db80252906ff0c7c01b3b3438de2e48e0766
URL:    http://git.openembedded.org/?p=openembedded.git&a=commit;h=b527db80252906ff0c7c01b3b3438de2e48e0766

Author: Andreas Oberritter <obi at opendreambox.org>
Date:   Mon May 16 19:41:14 2011 +0000

lib/oe/unpack.py: unpack rar archives

Signed-off-by: Andreas Oberritter <obi at opendreambox.org>
Acked-by: Paul Menzel <paulepanter at users.sourceforge.net>

---

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





More information about the Openembedded-commits mailing list