mirror of
https://github.com/evilhero/mylar
synced 2025-02-23 22:40:31 +00:00
FIX: Checking github for latest version would not occur on startup after last commit.
This commit is contained in:
parent
1a8be9bd84
commit
0c6bd57606
2 changed files with 11 additions and 11 deletions
|
@ -978,17 +978,17 @@ def initialize():
|
||||||
logger.error('Cannot connect to the database: %s' % e)
|
logger.error('Cannot connect to the database: %s' % e)
|
||||||
|
|
||||||
# Check for new versions (autoupdate)
|
# Check for new versions (autoupdate)
|
||||||
# if CHECK_GITHUB_ON_STARTUP:
|
if CHECK_GITHUB_ON_STARTUP:
|
||||||
# try:
|
try:
|
||||||
# LATEST_VERSION = versioncheck.checkGithub()
|
LATEST_VERSION = versioncheck.checkGithub()
|
||||||
# except:
|
except:
|
||||||
# LATEST_VERSION = CURRENT_VERSION
|
LATEST_VERSION = CURRENT_VERSION
|
||||||
# else:
|
else:
|
||||||
# LATEST_VERSION = CURRENT_VERSION
|
LATEST_VERSION = CURRENT_VERSION
|
||||||
#
|
#
|
||||||
# if AUTO_UPDATE:
|
if AUTO_UPDATE:
|
||||||
# if CURRENT_VERSION != LATEST_VERSION and INSTALL_TYPE != 'win' and COMMITS_BEHIND > 0:
|
if CURRENT_VERSION != LATEST_VERSION and INSTALL_TYPE != 'win' and COMMITS_BEHIND > 0:
|
||||||
# logger.info('Auto-updating has been enabled. Attempting to auto-update.')
|
logger.info('Auto-updating has been enabled. Attempting to auto-update.')
|
||||||
# SIGNAL = 'update'
|
# SIGNAL = 'update'
|
||||||
|
|
||||||
#check for syno_fix here
|
#check for syno_fix here
|
||||||
|
|
|
@ -148,7 +148,7 @@ def checkGithub():
|
||||||
|
|
||||||
# See how many commits behind we are
|
# See how many commits behind we are
|
||||||
if mylar.CURRENT_VERSION:
|
if mylar.CURRENT_VERSION:
|
||||||
logger.info('Comparing currently installed version with latest github version')
|
logger.fdebug('Comparing currently installed version [' + mylar.CURRENT_VERSION + '] with latest github version [' + mylar.LATEST_VERSION +']')
|
||||||
url = 'https://api.github.com/repos/%s/mylar/compare/%s...%s' % (mylar.GIT_USER, mylar.CURRENT_VERSION, mylar.LATEST_VERSION)
|
url = 'https://api.github.com/repos/%s/mylar/compare/%s...%s' % (mylar.GIT_USER, mylar.CURRENT_VERSION, mylar.LATEST_VERSION)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue