You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
createrepo_c zstd compression doesn't fill in the content size, in the frame header. This means that you can't call the python API to decompress in the simple/usable way:
data = zstandard.decompress(zstd_data)
...because you'll get an exception:
File "/usr/lib64/python3.11/site-packages/zstandard/__init__.py", line 210, in decompress
return dctx.decompress(data, max_output_size=max_output_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
zstd.ZstdError: could not determine content size in frame header
...the only way to workaround this is to guess at the output size and pass that random number to the decompress API call.