From 290f1f35f897d6e975dbb6bd9bbc810b6ac8cb21 Mon Sep 17 00:00:00 2001 From: Psychokiller1888 Date: Thu, 14 Dec 2023 13:14:19 +0100 Subject: [PATCH] Just to be faster --- core/Initializer.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/Initializer.py b/core/Initializer.py index 40927027..22d28db0 100644 --- a/core/Initializer.py +++ b/core/Initializer.py @@ -226,7 +226,7 @@ def doUpdates(self): result = subprocess.run(['git', 'checkout', updateSource], stdout=subprocess.PIPE, stderr=subprocess.PIPE) if 'switched' in result.stderr.decode().lower(): - print('Switched branch, restarting...') + print(f'Switched branch to "{updateSource}", restarting...') self.restart() result = subprocess.run(['git', 'pull'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) @@ -287,7 +287,8 @@ def checkInternet(self): # noinspection DuplicatedCode def getUpdateSource(self, definedSource: str) -> str: updateSource = 'master' - if definedSource in {'master', 'release'}: + #TODO remove 'bookworm' + if definedSource in {'master', 'release', 'bookworm'}: return updateSource try: