summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorPascal Eberhard <pascal.eberhard@se.com>2024-11-24 10:28:50 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-11-29 18:26:14 +0000
commitb35dc1a99d49710a981e024b0215d021afdb6c0f (patch)
treef024543e152334b802e7f97a9e5e9d81ff24aae3 /bitbake/lib
parentbe11cb29791b29021af6f8bddb967ab0bb7cfe9b (diff)
downloadpoky-b35dc1a99d49710a981e024b0215d021afdb6c0f.tar.gz
bitbake: fetch2: fix unpack of a single zstd file
do_unpack generates a 'Bitbake Fetcher Error: UnpackError' when uncompressing a single 'file.zst', zstd command line returns the error 'unexpected end of file', and the input file 'file.zst' becomes empty. The command line is 'zstd --decompress --stdout file.zst > file.zst'. So the issue is that the input and output filenames are the same. Fix the output filename when using zstd for a single file. (Bitbake rev: 5881ca0e0d53937cd25a57ff682a3b7577b0b7f8) Signed-off-by: Pascal Eberhard <pascal.eberhard@se.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 7ee12f4524..f79e278b1c 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1518,7 +1518,7 @@ class FetchMethod(object):
1518 (file, urldata.parm.get('unpack'))) 1518 (file, urldata.parm.get('unpack')))
1519 1519
1520 base, ext = os.path.splitext(file) 1520 base, ext = os.path.splitext(file)
1521 if ext in ['.gz', '.bz2', '.Z', '.xz', '.lz']: 1521 if ext in ['.gz', '.bz2', '.Z', '.xz', '.lz', '.zst']:
1522 efile = os.path.join(rootdir, os.path.basename(base)) 1522 efile = os.path.join(rootdir, os.path.basename(base))
1523 else: 1523 else:
1524 efile = file 1524 efile = file