MCPcopy Index your code
hub / github.com/saltstack/salt / parse_versions

Function parse_versions

tools/utils/__init__.py:332–340  ·  view source on GitHub ↗
(*versions: str)

Source from the content-addressed store, hash-verified

330
331
332def parse_versions(*versions: str) -> list[Version]:
333 _versions = []
334 for version in set(versions):
335 if version == "latest":
336 continue
337 _versions.append(Version(version))
338 if _versions:
339 _versions.sort(reverse=True)
340 return _versions
341
342
343def get_file_checksum(fpath: pathlib.Path, hash_name: str) -> str:

Callers

nothing calls this directly

Calls 3

VersionClass · 0.70
setFunction · 0.50
appendMethod · 0.45

Tested by

no test coverage detected