[oe-commits] Bernhard Reutner-Fischer : base.bbclass: handle xz compressed files and tarballs

git version control git at git.openembedded.org
Thu Feb 11 13:35:08 UTC 2010


Module: openembedded.git
Branch: shr/unstable
Commit: 8feccac9f3da5cb189450318cd1b82617ee5623a
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=8feccac9f3da5cb189450318cd1b82617ee5623a

Author: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
Date:   Wed Feb 10 21:12:56 2010 +0100

base.bbclass: handle xz compressed files and tarballs

Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>

---

 classes/base.bbclass |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/classes/base.bbclass b/classes/base.bbclass
index 9a24272..990e75e 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -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)





More information about the Openembedded-commits mailing list