diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-02 10:35:32 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-01-02 10:35:32 +0000 |
commit | 1d89595e2b99c645f7529cf9868e3aae7f4d70f1 (patch) | |
tree | 675dc64360bcc8a67716e7501b20e640b5652523 /meta/classes | |
parent | 6552990921d015c64f0bea6a5ab78286edf8dee9 (diff) | |
download | poky-1d89595e2b99c645f7529cf9868e3aae7f4d70f1.tar.gz |
base.bbclass: Add unpack handling for .jar files (from OE)
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/base.bbclass | 4 |
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): | |||
644 | cmd = 'gzip -dc %s > %s' % (file, efile) | 644 | cmd = 'gzip -dc %s > %s' % (file, efile) |
645 | elif file.endswith('.bz2'): | 645 | elif file.endswith('.bz2'): |
646 | cmd = 'bzip2 -dc %s > %s' % (file, efile) | 646 | cmd = 'bzip2 -dc %s > %s' % (file, efile) |
647 | elif file.endswith('.zip'): | 647 | elif file.endswith('.zip') or file.endswith('.jar'): |
648 | cmd = 'unzip -q' | 648 | cmd = 'unzip -q -o' |
649 | (type, host, path, user, pswd, parm) = bb.decodeurl(url) | 649 | (type, host, path, user, pswd, parm) = bb.decodeurl(url) |
650 | if 'dos' in parm: | 650 | if 'dos' in parm: |
651 | cmd = '%s -a' % cmd | 651 | cmd = '%s -a' % cmd |