Not restarting after update
This commit is contained in:
@@ -18,7 +18,10 @@ log = CPLog(__name__)
|
|||||||
|
|
||||||
class Core(Plugin):
|
class Core(Plugin):
|
||||||
|
|
||||||
ignore_restart = ['Core.restart', 'Core.shutdown', 'Updater.check']
|
ignore_restart = [
|
||||||
|
'Core.restart', 'Core.shutdown',
|
||||||
|
'Updater.check', 'Updater.autoUpdate',
|
||||||
|
]
|
||||||
shutdown_started = False
|
shutdown_started = False
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
|
|||||||
@@ -66,6 +66,10 @@ class Updater(Plugin):
|
|||||||
|
|
||||||
fireEventAsync('app.restart')
|
fireEventAsync('app.restart')
|
||||||
|
|
||||||
|
return True
|
||||||
|
|
||||||
|
return False
|
||||||
|
|
||||||
def check(self):
|
def check(self):
|
||||||
if self.isDisabled():
|
if self.isDisabled():
|
||||||
return
|
return
|
||||||
@@ -171,7 +175,6 @@ class GitUpdater(BaseUpdater):
|
|||||||
self.repo.saveStash()
|
self.repo.saveStash()
|
||||||
|
|
||||||
log.info('Updating to latest version')
|
log.info('Updating to latest version')
|
||||||
info = self.info()
|
|
||||||
self.repo.pull()
|
self.repo.pull()
|
||||||
|
|
||||||
# Delete leftover .pyc files
|
# Delete leftover .pyc files
|
||||||
|
|||||||
Reference in New Issue
Block a user