mirror of
https://git.yoctoproject.org/poky
synced 2026-09-19 09:49:33 +02:00
base.bbclass: Add unpack handling for .jar files (from OE)
This commit is contained in:
@@ -644,8 +644,8 @@ def oe_unpack_file(file, data, url = None):
|
|||||||
cmd = 'gzip -dc %s > %s' % (file, efile)
|
cmd = 'gzip -dc %s > %s' % (file, efile)
|
||||||
elif file.endswith('.bz2'):
|
elif file.endswith('.bz2'):
|
||||||
cmd = 'bzip2 -dc %s > %s' % (file, efile)
|
cmd = 'bzip2 -dc %s > %s' % (file, efile)
|
||||||
elif file.endswith('.zip'):
|
elif file.endswith('.zip') or file.endswith('.jar'):
|
||||||
cmd = 'unzip -q'
|
cmd = 'unzip -q -o'
|
||||||
(type, host, path, user, pswd, parm) = bb.decodeurl(url)
|
(type, host, path, user, pswd, parm) = bb.decodeurl(url)
|
||||||
if 'dos' in parm:
|
if 'dos' in parm:
|
||||||
cmd = '%s -a' % cmd
|
cmd = '%s -a' % cmd
|
||||||
|
|||||||
Reference in New Issue
Block a user