base.bbclass: Use 'unzip' for *.jar files as well.
authorRobert Schuster <thebohemian@gmx.net>
Tue, 7 Oct 2008 21:05:11 +0000 (21:05 +0000)
committerRobert Schuster <thebohemian@gmx.net>
Tue, 7 Oct 2008 21:05:11 +0000 (21:05 +0000)
classes/base.bbclass

index 540b891..c761549 100644 (file)
@@ -636,7 +636,7 @@ 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'):
+       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: