From 18bca6fab3519855a9e2e3536364d8a54334e0ed Mon Sep 17 00:00:00 2001 From: Gergo Date: Thu, 19 Nov 2026 13:19:17 +0100 Subject: [PATCH] An AnnoBase folder left by the old archive fetch is moved aside like one of this step Co-Authored-By: Claude Opus 5.5 --- fetch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fetch.py b/fetch.py index 70cd670..92daa57 100644 --- a/fetch.py +++ b/fetch.py @@ -14,6 +14,7 @@ from pathlib import Path SERVER = "https://git.annodev.software" REPOSITORY = "annodev/anno-base" MARKER = ".annobase-version" +OLD_MARKER = ".annobase-archive-ref" def setting(path, key): @@ -71,7 +72,7 @@ def fetch(version, destination, token): print(f"AnnoBase {version} is already in {destination}") return if destination.exists(): - if not marker.is_file(): + if not marker.is_file() and not (destination / OLD_MARKER).is_file(): sys.exit(f"{destination} exists and was not made by this step") destination.rename(destination.with_name(f"{destination.name}.replaced.{int(time.time())}")) assets = release_assets(version, token)