base.bbclass: Add unpack handling for .jar files (from OE)

This commit is contained in:
Richard Purdie 2009-01-02 10:35:32 +00:00
parent 6552990921
commit 1d89595e2b
1 changed files with 2 additions and 2 deletions

View 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