mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 08:45:04 -05:00
tools: be more specific about XEP filenames
Sometimes the main working directory may have other XML files such as the temporary files generated by TeXML (xep-*.tex.xml) which may be picked up by the metadata script. Use a more specific pattern so that it only extracts metadata from real XEP files.
This commit is contained in:
parent
5f2bbc8261
commit
04c9106434
@ -202,7 +202,7 @@ def main():
|
|||||||
|
|
||||||
has_error = False
|
has_error = False
|
||||||
|
|
||||||
for xepfile in args.xepdir.glob("xep-*.xml"):
|
for xepfile in args.xepdir.glob("xep-[0-9][0-9][0-9][0-9].xml"):
|
||||||
number = xepfile.name.split("-", 1)[1].split(".", 1)[0]
|
number = xepfile.name.split("-", 1)[1].split(".", 1)[0]
|
||||||
try:
|
try:
|
||||||
number = str(int(number))
|
number = str(int(number))
|
||||||
|
Loading…
Reference in New Issue
Block a user