mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-02 09:49:36 +01:00
Fixed updater (hopefully), and some other small bugs
This commit is contained in:
@@ -373,8 +373,11 @@ def shutdown(restart=False, update=False):
|
|||||||
config_write()
|
config_write()
|
||||||
|
|
||||||
if update:
|
if update:
|
||||||
versioncheck.update()
|
try:
|
||||||
|
versioncheck.update()
|
||||||
|
except Exception, e:
|
||||||
|
logger.warn('Headphones failed to update: %s. Restarting.' % e)
|
||||||
|
|
||||||
if restart:
|
if restart:
|
||||||
|
|
||||||
popen_list = [sys.executable, FULL_PATH]
|
popen_list = [sys.executable, FULL_PATH]
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ def checkGithub():
|
|||||||
|
|
||||||
def update():
|
def update():
|
||||||
|
|
||||||
output, err = runGit('pull origin '+headphones.LATEST_VERSION)
|
output, err = runGit('pull origin master')
|
||||||
|
|
||||||
if not output:
|
if not output:
|
||||||
logger.error('Couldn\'t download latest version')
|
logger.error('Couldn\'t download latest version')
|
||||||
|
|||||||
Reference in New Issue
Block a user