mirror of
https://github.com/lutris/lutris
synced 2024-10-02 22:14:23 +00:00
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:
parent
b8d651fedb
commit
526cebd1fb
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue