1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2025-02-23 06:20:31 +00:00

FIX: Checking github for latest version would not occur on startup after last commit.

This commit is contained in:
evilhero 2015-06-22 00:54:50 -04:00
parent 1a8be9bd84
commit 0c6bd57606
2 changed files with 11 additions and 11 deletions

View file

@ -978,17 +978,17 @@ def initialize():
logger.error('Cannot connect to the database: %s' % e)
# Check for new versions (autoupdate)
# if CHECK_GITHUB_ON_STARTUP:
# try:
# LATEST_VERSION = versioncheck.checkGithub()
# except:
# LATEST_VERSION = CURRENT_VERSION
# else:
# LATEST_VERSION = CURRENT_VERSION
if CHECK_GITHUB_ON_STARTUP:
try:
LATEST_VERSION = versioncheck.checkGithub()
except:
LATEST_VERSION = CURRENT_VERSION
else:
LATEST_VERSION = CURRENT_VERSION
#
# if AUTO_UPDATE:
# if CURRENT_VERSION != LATEST_VERSION and INSTALL_TYPE != 'win' and COMMITS_BEHIND > 0:
# logger.info('Auto-updating has been enabled. Attempting to auto-update.')
if AUTO_UPDATE:
if CURRENT_VERSION != LATEST_VERSION and INSTALL_TYPE != 'win' and COMMITS_BEHIND > 0:
logger.info('Auto-updating has been enabled. Attempting to auto-update.')
# SIGNAL = 'update'
#check for syno_fix here

View file

@ -148,7 +148,7 @@ def checkGithub():
# See how many commits behind we are
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)
try: