Runner updates should be less choosy - you can have a runner without yet having its directory (it can be coming from flatpak or be part of your distro)

So, we should be able to install versions of the runner without a pre-existing runner dir, or with one that is empty.
This commit is contained in:
Daniel Johnson 2024-04-04 18:02:02 -04:00
parent b8d651fedb
commit 526cebd1fb

View file

@ -466,13 +466,7 @@ class RunnerComponentUpdater(ComponentUpdater):
def should_update(self):
# This has the responsibility to update existing runners, not installing new ones
runner_base_path = os.path.join(settings.RUNNER_DIR, self.name)
if not system.path_exists(runner_base_path) or not os.listdir(runner_base_path):
return False
if system.path_exists(self.version_path):
return False
return True
return not system.path_exists(self.version_path)
def install_update(self, updater: "RuntimeUpdater") -> None:
url = self.upstream_runner["url"]