diff options
author | Walter Purcaro <vuolter@gmail.com> | 2014-11-15 17:15:29 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2014-11-15 17:15:29 +0100 |
commit | 282362c01b67f83ff5cf677ba125a41a6d594f2c (patch) | |
tree | 7782f1a146f41fa26fdd2c4bdb1679977cf5cf35 /pyload/plugins/addon/UpdateManager.py | |
parent | Code cosmetics (diff) | |
download | pyload-282362c01b67f83ff5cf677ba125a41a6d594f2c.tar.xz |
Update plugins 2
Diffstat (limited to 'pyload/plugins/addon/UpdateManager.py')
-rw-r--r-- | pyload/plugins/addon/UpdateManager.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pyload/plugins/addon/UpdateManager.py b/pyload/plugins/addon/UpdateManager.py index 651cdde80..4a7fa736a 100644 --- a/pyload/plugins/addon/UpdateManager.py +++ b/pyload/plugins/addon/UpdateManager.py @@ -187,7 +187,7 @@ class UpdateManager(Addon): for plugin in upgradable: filename = plugin['name'] - prefix = plugin['type'] + type = plugin['type'] version = plugin['version'] if filename.endswith(".pyc"): @@ -195,12 +195,6 @@ class UpdateManager(Addon): else: name = filename.replace(".py", "") - #@TODO: obsolete after 0.4.10 - if prefix.endswith("s"): - type = prefix[:-1] - else: - type = prefix - plugins = getattr(self.core.pluginManager, "%sPlugins" % type) oldver = float(plugins[name]['v']) if name in plugins else None |