several small fixes:

- systemmodule ir und res aufgenommen
- Version auf Major.Minor reduziert
- reihenfolge der Module fixiert
This commit is contained in:
2026-08-08 01:29:43 +02:00
parent 4fff05a09e
commit 64fda357ad
291 changed files with 18425 additions and 1456 deletions
+6 -4
View File
@@ -8,6 +8,8 @@ from pathlib import Path
DEFAULT_REPO = "/home/uha4/tmp/tryton"
DEFAULT_MODULES = [
"ir",
"res",
"company",
"country",
"currency",
@@ -194,7 +196,7 @@ def detect_version(repo: Path) -> str:
with changelog.open("r", encoding="utf-8") as f:
for line in f:
if line.startswith("Version "):
return line.split()[1]
return line.split()[1].rsplit('.', 1)[0]
return "unknown"
@@ -202,7 +204,7 @@ def find_module(repo: Path, module: str) -> Path | None:
candidates = [
repo / "modules" / module,
repo / "trytond" / "modules" / module,
repo / "trytond" / "trytond" / module,
]
for c in candidates:
@@ -248,9 +250,9 @@ def main():
for module in modules:
module_path = repo / "modules" / module
module_path = find_module(repo, module)
if not module_path.exists():
if not module_path:
print(f"Module not found: {module}")
continue