mirror of
https://github.com/unmojang/meta.git
synced 2025-09-24 03:31:03 -04:00
Change type
Signed-off-by: Johannes Joens <johannes@joens.email>
This commit is contained in:
parent
d3a221a40a
commit
d9b0c8e8c5
@ -57,6 +57,7 @@ def fetch_modified_version(path, version):
|
|||||||
}
|
}
|
||||||
|
|
||||||
version_json["downloads"] = downloads
|
version_json["downloads"] = downloads
|
||||||
|
version_json["type"] = "old_snapshot"
|
||||||
|
|
||||||
with open(path, 'w', encoding='utf-8') as f:
|
with open(path, 'w', encoding='utf-8') as f:
|
||||||
json.dump(version_json, f, sort_keys=True, indent=4)
|
json.dump(version_json, f, sort_keys=True, indent=4)
|
||||||
@ -134,6 +135,7 @@ def main():
|
|||||||
old_snapshots_path = os.path.join(UPSTREAM_DIR, VERSIONS_DIR, f"{x}.json")
|
old_snapshots_path = os.path.join(UPSTREAM_DIR, VERSIONS_DIR, f"{x}.json")
|
||||||
|
|
||||||
print("Updating old snapshot " + version.id)
|
print("Updating old snapshot " + version.id)
|
||||||
|
fetch_modified_version(old_snapshots_path, version)
|
||||||
if not os.path.isfile(old_snapshots_path):
|
if not os.path.isfile(old_snapshots_path):
|
||||||
fetch_modified_version(old_snapshots_path, version)
|
fetch_modified_version(old_snapshots_path, version)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user