Kit manager menu oncesi
This commit is contained in:
+11
@@ -140,6 +140,17 @@ def resolve_checksum(kit_name):
|
||||
return filename[len(kit_name) + 1:-4]
|
||||
|
||||
|
||||
def version_for_checksum(kit_name, checksum):
|
||||
"""The version a kit's checksum stands for, read from the .kit filenames.
|
||||
|
||||
Returns "" when Sedona home has no .kit for that checksum, which is the honest
|
||||
answer for a file pinned to a build this machine does not hold.
|
||||
"""
|
||||
if not checksum:
|
||||
return ""
|
||||
return kit_versions(kit_name).get(checksum, "")
|
||||
|
||||
|
||||
def _find_type(qualified_name):
|
||||
if "::" not in qualified_name:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user