base.bbclass: Add .tbz2 besides .tbz and .tar.bz2
authorLeon Woestenberg <leon.woestenberg@gmail.com>
Sat, 1 Mar 2008 12:07:07 +0000 (12:07 +0000)
committerLeon Woestenberg <leon.woestenberg@gmail.com>
Sat, 1 Mar 2008 12:07:07 +0000 (12:07 +0000)
classes/base.bbclass

index 089cd5a..7609c05 100644 (file)
@@ -544,7 +544,7 @@ def oe_unpack_file(file, data, url = None):
                cmd = 'tar x --no-same-owner -f %s' % file
        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'):
+       elif file.endswith('.tbz') or file.endswith('.tbz2') or file.endswith('.tar.bz2'):
                cmd = 'bzip2 -dc %s | tar x --no-same-owner -f -' % file
        elif file.endswith('.gz') or file.endswith('.Z') or file.endswith('.z'):
                cmd = 'gzip -dc %s > %s' % (file, efile)