Commit f3a3ff1f authored by Jan Reimes's avatar Jan Reimes
Browse files

Fix spec source dir resolution: auto-crawl when DB has no versions

_resolve_spec_source_id now passes auto_crawl=True to
resolve_spec_release_from_db so specs without version data in the
database get crawled from 3GPP before determining the -REL suffix
for the source directory name.
parent a3a05d16
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -69,7 +69,7 @@ def _resolve_spec_source_id(source_id: str) -> str:
    if "-REL" in source_id.upper():
        return source_id
    try:
        resolved, _ = run_async(resolve_spec_release_from_db(source_id, "latest"))
        resolved, _ = run_async(resolve_spec_release_from_db(source_id, "latest", auto_crawl=True))
        # Only use resolved version if it's an actual version, not "latest"
        if resolved and resolved.lower() != "latest" and resolved[0].isdigit():
            return f"{source_id}-REL{resolved}"