]> code.ossystems Code Review - openembedded-core.git/commitdiff
base.bbclass: Add unpack handling for .jar files (from OE)
authorRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jan 2009 10:35:32 +0000 (10:35 +0000)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 2 Jan 2009 10:35:32 +0000 (10:35 +0000)
meta/classes/base.bbclass

index 404c319d04f4827ecfcf3c275dd6c4ce2c6a6e03..8e6284c5321ae53d751557ea508167e515eaf544 100644 (file)
@@ -644,8 +644,8 @@ def oe_unpack_file(file, data, url = None):
                cmd = 'gzip -dc %s > %s' % (file, efile)
        elif file.endswith('.bz2'):
                cmd = 'bzip2 -dc %s > %s' % (file, efile)
-       elif file.endswith('.zip'):
-               cmd = 'unzip -q'
+       elif file.endswith('.zip') or file.endswith('.jar'):
+               cmd = 'unzip -q -o'
                (type, host, path, user, pswd, parm) = bb.decodeurl(url)
                if 'dos' in parm:
                        cmd = '%s -a' % cmd