Fix update check.

This commit is contained in:
Bastian Kleineidam 2011-01-04 23:34:34 +01:00
parent 86ab92445a
commit 689624ec16
2 changed files with 2 additions and 1 deletions

View file

@ -55,7 +55,7 @@ class UpdateDialog (QtGui.QMessageBox):
attrs = dict(app=configuration.App)
else:
# display update link
version, url = 'hulla', 'bulla'
version, url = value
text = _('A new version %(version)s of %(app)s is '
'available for <a href="%(url)s">download</a>.')
attrs = dict(version=version, app=configuration.AppName,

View file

@ -57,6 +57,7 @@ def get_current_version ():
version = line.split(':', 1)[1].strip()
elif line.startswith(URL_TAG):
url = line.split(':', 1)[1].strip()
url = url.replace('${version}', version)
return version, url