summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorMert Kirpici <smertk@gmail.com>2020-11-02 01:29:08 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-03 08:21:10 +0000
commit41ea50dcc87dc62f55f42d31fdb1afe281f5b387 (patch)
tree3cc66e4837e2a14e0623afac66688cf805598e1a /bitbake
parent72060138fa41ce0cdb2d22ef41c3482c8e6fc505 (diff)
downloadpoky-41ea50dcc87dc62f55f42d31fdb1afe281f5b387.tar.gz
bitbake: fetch2: add zstd support to unpack
This commit adds unpack support to fetched files with extensions: '.tar.zst', '.tzst' and '.zst' (Bitbake rev: 4348743a7e36f3a495e2dc48f83989d9481060f2) Signed-off-by: Mert Kirpici <mert.kirpici@siemens.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 551bfb70f2..ca81bd5225 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1461,6 +1461,10 @@ class FetchMethod(object):
1461 cmd = '7z x -so %s | tar x --no-same-owner -f -' % file 1461 cmd = '7z x -so %s | tar x --no-same-owner -f -' % file
1462 elif file.endswith('.7z'): 1462 elif file.endswith('.7z'):
1463 cmd = '7za x -y %s 1>/dev/null' % file 1463 cmd = '7za x -y %s 1>/dev/null' % file
1464 elif file.endswith('.tzst') or file.endswith('.tar.zst'):
1465 cmd = 'zstd --decompress --stdout %s | tar x --no-same-owner -f -' % file
1466 elif file.endswith('.zst'):
1467 cmd = 'zstd --decompress --stdout %s > %s' % (file, efile)
1464 elif file.endswith('.zip') or file.endswith('.jar'): 1468 elif file.endswith('.zip') or file.endswith('.jar'):
1465 try: 1469 try:
1466 dos = bb.utils.to_boolean(urldata.parm.get('dos'), False) 1470 dos = bb.utils.to_boolean(urldata.parm.get('dos'), False)