Skip to content
Snippets Groups Projects
Commit d6675d9f authored by Vladimír Čunát's avatar Vladimír Čunát
Browse files

modules/version: only report CVE if versions differ

Also avoid that extremely long line.
parent b3392b13
Branches
Tags
No related merge requests found
......@@ -51,10 +51,13 @@ local function parse(record)
local version = parseVersion(str)
local localVersion = '@VERSION@'
if version ~= localVersion then
output = output .. string.format("[version] Current version of Knot DNS Resolver is different from the latest stable one available. (Current: %s, Latest stable: %s)\n", localVersion, version)
end
if CVE ~= "N/A" then
output = output .. string.format("[version] CVE: %s\n", CVE)
output = output .. string.format(
"[version] Current version of Knot DNS Resolver is different from the latest stable one available."
.. " (Current: %s, Latest stable: %s)\n",
localVersion, version)
if CVE ~= "N/A" then
output = output .. string.format("[version] CVE: %s\n", CVE)
end
end
io.write(output)
end
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment