Compare commits

..

No commits in common. "88eb4f3dfabcd35b4eb64547397b9871e280d36f" and "0d9b516ca2b813f3a6c10554a092d539a7349dcb" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -8,7 +8,7 @@ from pathlib import Path
import lxml.etree as etree import lxml.etree as etree
from build.lib.misc import get_basepath, update_if_changed from build.lib.misc import get_basepath
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@ -71,10 +71,7 @@ def _write_localmenus(
), ),
).text = localmenu.text ).text = localmenu.text
update_if_changed( page.getroottree().write(file, xml_declaration=True, encoding="utf-8")
file,
etree.tostring(page, encoding="utf-8").decode("utf-8"),
)
def update_localmenus(languages: list[str], pool: multiprocessing.Pool) -> None: def update_localmenus(languages: list[str], pool: multiprocessing.Pool) -> None:

View File

@ -127,7 +127,7 @@ def _check_xmllist_deps(file: Path) -> None:
xmls = set() xmls = set()
with file.open(mode="r") as fileobj: with file.open(mode="r") as fileobj:
for line in fileobj: for line in fileobj:
for newfile in Path("").glob(line.strip() + ".??.xml"): for newfile in Path("").glob(line + ".??.xml"):
xmls.add(newfile) xmls.add(newfile)
touch_if_newer_dep(file, list(xmls)) touch_if_newer_dep(file, list(xmls))