Pretty silly, seems to be a left-over from a previous iteration of the
code.
In addition, don't mention anything about sections as there is no
support for matching them (yet). We do not have manpages with the same
name in both sections, so it's not a problem for now.
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local function display_doc(documentation, doc_name)
local rc, re, e
- local doc_re_match = string.format("^%s$", doc_name)
local found = 0
local founddoc
for _,doc in ipairs(documentation) do
- if doc.displayname:match(doc_re_match) then
+ if doc.displayname == doc_name then
found = found + 1;
founddoc = doc
end
e2lib.bomb(string.format("unhandled doctype: %d", founddoc.doctype))
end
else
- return false, err.new("More than one document found for '%s',"..
- " specify a section", doc_name)
+ return false, err.new("More than one document matches '%s'", doc_name)
end
return true