Commit 4b57467b authored by Claude Paroz's avatar Claude Paroz

Fixed a file extension check

Should also fix bug #749860
parent 0d2c6ec1
......@@ -443,8 +443,11 @@ def generate_doc_pot_file(branch, domain):
files.append(Path("C", index_page))
break
if not files:
# Last try: only one xml file in C/...
xml_files = [f for f in doc_format.source_files(force_all=True) if f.endswith(".xml")]
# Last try: only one xml/docbook file in C/...
xml_files = [
f for f in doc_format.source_files(force_all=True)
if f.suffix in (".xml", ".docbook")
]
if len(xml_files) == 1:
files.append(xml_files[0])
else:
......
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