summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2009-01-02 10:35:32 +0000
committerRichard Purdie <rpurdie@linux.intel.com>2009-01-02 10:35:32 +0000
commit1d89595e2b99c645f7529cf9868e3aae7f4d70f1 (patch)
tree675dc64360bcc8a67716e7501b20e640b5652523 /meta/classes
parent6552990921d015c64f0bea6a5ab78286edf8dee9 (diff)
downloadopenembedded-core-1d89595e2b99c645f7529cf9868e3aae7f4d70f1.tar.gz
openembedded-core-1d89595e2b99c645f7529cf9868e3aae7f4d70f1.tar.bz2
openembedded-core-1d89595e2b99c645f7529cf9868e3aae7f4d70f1.zip
base.bbclass: Add unpack handling for .jar files (from OE)
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/base.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 404c319d04..8e6284c532 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -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