From 77c46353c6836668b67c28691279177ccce8d483 Mon Sep 17 00:00:00 2001 From: Chris Larson Date: Tue, 26 Oct 2010 12:14:42 -0700 Subject: Handle .lz/.tar.lz URIs Signed-off-by: Chris Larson --- lib/oe/unpack.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib') diff --git a/lib/oe/unpack.py b/lib/oe/unpack.py index 5a8334bc1a..e4fe5d8363 100644 --- a/lib/oe/unpack.py +++ b/lib/oe/unpack.py @@ -73,6 +73,11 @@ def unpack_file(file, destdir, dos=False, env=None): elif file.endswith('.xz'): root, ext = os.path.splitext(file) cmd = 'xz -dc %s > %s' % (file, os.path.basename(root)) + elif file.endswith('.tar.lz'): + cmd = 'lzip -dc %s | tar x --no-same-owner -f -' % file + elif file.endswith('.lz'): + root, ext = os.path.splitext(file) + cmd = 'lzip -dc %s > %s' % (file, os.path.basename(root)) elif file.endswith('.zip') or file.endswith('.jar'): cmd = 'unzip -q -o' if dos: -- cgit 1.2.3-korg