From 57044f553923108d4464292127d29ccdadf99884 Mon Sep 17 00:00:00 2001 From: rembo10 Date: Mon, 18 Jun 2012 16:02:14 +0530 Subject: [PATCH] Fixed incorrect LATEST_VERSION variable, added some logging when checking github --- headphones/versioncheck.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/headphones/versioncheck.py b/headphones/versioncheck.py index 408126c5..76aef1ab 100644 --- a/headphones/versioncheck.py +++ b/headphones/versioncheck.py @@ -93,7 +93,7 @@ def checkGithub(): # Get the latest commit available from github url = 'https://api.github.com/repos/%s/headphones/commits/%s' % (user, branch) - + logger.info ('Retrieving latest version information from github') try: result = urllib2.urlopen(url).read() git = simplejson.JSONDecoder().decode(result) @@ -103,7 +103,7 @@ def checkGithub(): # See how many commits behind we are if headphones.CURRENT_VERSION: - + logger.info('Comparing currently installed version with latest github version') url = 'https://api.github.com/repos/%s/headphones/compare/%s...%s' % (user, headphones.CURRENT_VERSION, headphones.LATEST_VERSION) try: @@ -123,7 +123,7 @@ def checkGithub(): else: logger.info('You are running an unknown version of Headphones. Run the updater to identify your version') - return LATEST_VERSION + return headphones.LATEST_VERSION def update():