mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 00:24:45 +00:00
Fix update check.
This commit is contained in:
parent
86ab92445a
commit
689624ec16
2 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue