Skip to content

Commit

Permalink
Just to be faster
Browse files Browse the repository at this point in the history
  • Loading branch information
Psychokiller1888 committed Dec 14, 2023
1 parent 63ddcec commit 290f1f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/Initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 290f1f3

Please sign in to comment.