summaryrefslogtreecommitdiffstats
path: root/module/plugins
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-27 01:44:45 +0200
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-06-27 01:44:45 +0200
commitfb47817e99e9773b0cc1c39d537b7c594f6d71d3 (patch)
treee8824040d242459c66e32751d0796ea97f7f97ac /module/plugins
parentSpare fixes (diff)
downloadpyload-fb47817e99e9773b0cc1c39d537b7c594f6d71d3.tar.xz
[UpdateManager] Store new pyload's version number when a system update is available
Diffstat (limited to 'module/plugins')
-rw-r--r--module/plugins/hooks/UpdateManager.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index 5b7bf76b0..9f8ccdb80 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -47,7 +47,7 @@ class UpdateManager(Hook):
self.cb2 = None
self.interval = self.MIN_TIME
self.updating = False
- self.info = {"pyload": False, "plugins": False}
+ self.info = {"pyload": False, "version": None, "plugins": False}
self.mtimes = {} #: store modification time for each plugin
@@ -115,10 +115,10 @@ class UpdateManager(Hook):
r = False
else:
newversion = data[0]
- # self.info["pyload"] = newversion
self.logInfo(_("*** New pyLoad Version %s available ***") % newversion)
self.logInfo(_("*** Get it here: https://github.com/pyload/pyload/releases ***"))
r = self.info["pyload"] = True
+ self.info["version"] = newversion
return r
def _updatePlugins(self, updates):