aboutsummaryrefslogtreecommitdiffstats
path: root/lib/oe
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-10-26 12:14:42 -0700
committerChris Larson <chris_larson@mentor.com>2010-10-26 12:15:40 -0700
commit77c46353c6836668b67c28691279177ccce8d483 (patch)
treef02a8542dfdd645352b19f2300c66a9bda3cec19 /lib/oe
parente2a741b3d2b4acef820d04efc7a0de96a7e1e2a5 (diff)
downloadopenembedded-77c46353c6836668b67c28691279177ccce8d483.tar.gz
openembedded-77c46353c6836668b67c28691279177ccce8d483.tar.bz2
openembedded-77c46353c6836668b67c28691279177ccce8d483.zip
Handle .lz/.tar.lz URIs
Signed-off-by: Chris Larson <chris_larson@mentor.com>
Diffstat (limited to 'lib/oe')
-rw-r--r--lib/oe/unpack.py5
1 files changed, 5 insertions, 0 deletions
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: