Commit 3998fe80 authored by Jan-Tarek Butt's avatar Jan-Tarek Butt

firmware-bot: spelling sgigned to signed

parent e505e3c9
......@@ -162,7 +162,7 @@ end
--ret = { index , table }
--table = { version , version }
-- { branch, prefix }
-- { sgigned, Num }
-- { signed, Num }
-- { persons, table1 }
--table1 = { index, names }
-- check all signnatures and return a table
......@@ -187,7 +187,7 @@ local function check_manifest_signature(signscript, pub_keys, firmware_dir)
end
if version["branch"] ~= nil then
-- signed persons
version["sgigned"] = 0
version["signed"] = 0
local signed_person = {}
for k, p in pairs(pub_keys[version["branch"]]) do
local f = io.popen(signscript.." " .. k .. " " ..dir.."/".. version["branch"]..".manifest 2>&1 \necho $?\n")
......@@ -196,7 +196,7 @@ local function check_manifest_signature(signscript, pub_keys, firmware_dir)
if not sigtest:match("Error while reading signature") then
-- Manifest not broken
if sigtest:match("0") then
version["sgigned"] = version["sgigned"] +1
version["signed"] = version["signed"] +1
table.insert(signed_person,p)
end
else
......@@ -219,7 +219,7 @@ local function genertate_html(content, dir)
local control = {}
control["version"] = nil
control["branch"] = nil
control["sgigned"] = nil
control["signed"] = nil
control["persons"] = nil
-- Get table header
for i,t in pairs(content) do
......@@ -230,15 +230,15 @@ local function genertate_html(content, dir)
if k:match("branch") and control["branch"] == nil then
control["branch"] = "\t\t<th>"..k.."</th>\n"
end
if k:match("sgigned") and control["sgigned"] == nil then
control["sgigned"] = "\t\t<th>"..k.."</th>\n"
if k:match("signed") and control["signed"] == nil then
control["signed"] = "\t\t<th>"..k.."</th>\n"
end
if k:match("persons") and control["persons"] == nil then
control["persons"] = "\t\t<th>"..k.."</th>\n"
end
end
end
html_table = html_table.."\t<tr>\n"..control["branch"]..control["version"]..control["sgigned"]..control["persons"].."\t</tr>\n"
html_table = html_table.."\t<tr>\n"..control["branch"]..control["version"]..control["signed"]..control["persons"].."\t</tr>\n"
-- fill kontent
for i,t in pairs(content) do
local content = {}
......@@ -247,14 +247,14 @@ local function genertate_html(content, dir)
end
content["version"] = "\t\t<td>"..t["version"].."</td>\n"
content["branch"] = "\t\t<td>"..t["branch"].."</td>\n"
content["sgigned"] = "\t\t<td>"..t["sgigned"].."</td>\n"
content["signed"] = "\t\t<td>"..t["signed"].."</td>\n"
content["persons"] = "\t\t<td>"
for k,v in pairs(t["persons"]) do
content["persons"] = content["persons"]..v.."\n"
end
content["persons"] = content["persons"].."</td>\n"
if content["branch"] ~= "" then
html_table = html_table.."\t<tr>\n"..content["branch"]..content["version"]..content["sgigned"]..content["persons"].."\t</tr>\n"
html_table = html_table.."\t<tr>\n"..content["branch"]..content["version"]..content["signed"]..content["persons"].."\t</tr>\n"
end
end
html_table = html_table.."</table>"
......
Markdown is supported
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