]> git.openpandora.org Git - openembedded.git/commitdiff
base.bbclass: handle xz compressed files and tarballs
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Wed, 10 Feb 2010 20:12:56 +0000 (21:12 +0100)
committerPhil Blundell <philb@gnu.org>
Thu, 11 Feb 2010 12:26:51 +0000 (12:26 +0000)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
classes/base.bbclass

index 9a242720e7b0779f50888aecc90b4859a1dc6aa9..990e75ee14e412caa720ca8b78a364526d770494 100644 (file)
@@ -794,6 +794,10 @@ 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('.tar.xz'):
+               cmd = 'xz -dc %s | tar x --no-same-owner -f -' % file
+       elif file.endswith('.xz'):
+               cmd = 'xz -dc %s > %s' % (file, efile)
        elif file.endswith('.zip') or file.endswith('.jar'):
                cmd = 'unzip -q -o'
                (type, host, path, user, pswd, parm) = bb.decodeurl(url)