[Buildroot] [PATCHv2] support/scripts/cve: fix running on older ijson versions

Peter Korsgaard peter at korsgaard.com
Thu Feb 29 17:48:30 UTC 2024


>>>>> "Yann" == Yann E MORIN <yann.morin.1998 at free.fr> writes:

 > Commit 22b69455526f (support/scripts/cve.py: switch from NVD to FKIE for
 > the JSON files) had to change the decompressor from gz to xz, as the new
 > location is using xz compression.

 > That commit mentioned that it was spawning an external xz process to do
 > the decompression, on the pretence that "there is no xz decompressor in
 > Python stdlib."

 > Before version 3.1, ijson.items() only accepted a file-like object as
 > input (that file-like object could yield bytes() or str(), both were
 > supported). Starting with version 3.1, ijson.items() also accepts that
 > it be directly passed bytesd() or str() directly. subprocess.check_output()

s/bytesd/bytes/.

Committed with that fixed, thanks!

-- 
Bye, Peter Korsgaard



More information about the buildroot mailing list