base.bbclass: handle tar.Z archives - close #1433
authorTom Walsh <tom@openhardware.net>
Tue, 26 Sep 2006 09:02:59 +0000 (09:02 +0000)
committerMarcin Juszkiewicz <hrw@openembedded.org>
Tue, 26 Sep 2006 09:02:59 +0000 (09:02 +0000)
classes/base.bbclass

index 36caea2..0c62568 100644 (file)
@@ -394,7 +394,7 @@ def oe_unpack_file(file, data, url = None):
        cmd = None
        if file.endswith('.tar'):
                cmd = 'tar x --no-same-owner -f %s' % file
-       elif file.endswith('.tgz') or file.endswith('.tar.gz'):
+       elif file.endswith('.tgz') or file.endswith('.tar.gz') or file.endswith('.tar.Z'):
                cmd = 'tar xz --no-same-owner -f %s' % file
        elif file.endswith('.tbz') or file.endswith('.tar.bz2'):
                cmd = 'bzip2 -dc %s | tar x --no-same-owner -f -' % file