From f16590e26254b5a39ecbc36b4ac0fa1951d12389 Mon Sep 17 00:00:00 2001 From: GammaC0de Date: Fri, 3 Jun 2016 15:31:59 +0300 Subject: [UpdateManager] Bugfix --- module/plugins/hooks/UpdateManager.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 3cb325d29..504b1e353 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -15,7 +15,7 @@ from module.plugins.internal.misc import encode, exists, Expose, fsjoin, threade class UpdateManager(Addon): __name__ = "UpdateManager" __type__ = "hook" - __version__ = "1.13" + __version__ = "1.14" __status__ = "testing" __config__ = [("activated" , "bool", "Activated" , True ), @@ -164,19 +164,22 @@ class UpdateManager(Addon): self.info['pyload'] = False self.info['last_check'] = time.time() - if not newversion or not re.search(r'^\d+(?:\.\d+){0,3}[a-z]?$', newversion): + if not newversion: exitcode = 0 elif newversion == "None": self.log_info(_("pyLoad is up to date!")) exitcode = self.update_plugins() - else: + elif re.search(r'^\d+(?:\.\d+){0,3}[a-z]?$', newversion): self.log_info(_("*** New pyLoad %s available ***") % newversion) self.log_info(_("*** Get it here: https://github.com/pyload/pyload/releases ***")) self.info['pyload'] = True exitcode = 3 + else: + exitcode = 0 + #: Exit codes: #: -1 = No plugin updated, new pyLoad version available #: 0 = No plugin updated -- cgit v1.2.3