Hi!
I'm looking to integrate the output of
So I could expect the key
However, on one of my older servers, I noticed this output:
At this point, my logic fails, since
So my question is: Is there any documentation describing this json output, and all the different things it might contain, so that I can take them into account when parsing it?
I'm looking to integrate the output of
./build versions_json
into a script to perform some automatic handling and reporting of available updates. At first glance, the structure looks fairly simple, e.g.
JSON:
# ./build versions_json
{
"exim_conf": {
"name": "exim.conf",
"current": "4.5.33",
"offered": "4.5.35"
}
}
So I could expect the key
exim_conf
to be one available update, and similar if there were more entries.However, on one of my older servers, I noticed this output:
JSON:
# ./build versions_json
{
"exim_conf": {
"name": "exim.conf",
"current": "4.5.33",
"offered": "4.5.35"
},
"security": {
"MariaDB EOL": {
"name": "MariaDB is EOL",
"description": "MariaDB version on the system is end of life, please upgrade",
"url": "https://endoflife.software/applications/databases"
}
}
}
At this point, my logic fails, since
security
isn't a piece of software that can be updated.So my question is: Is there any documentation describing this json output, and all the different things it might contain, so that I can take them into account when parsing it?