diff options
author | 2015-04-16 17:01:39 +0200 | |
---|---|---|
committer | 2015-04-16 17:01:39 +0200 | |
commit | 84169f4862fa257e0a8a47e5f3578e9ec97ccf4f (patch) | |
tree | dd18f97f02637f667b803796f2b456836204a5d5 /pyload/plugin/addon/UpdateManager.py | |
parent | Merge branch 'stable' into 0.4.10 (diff) | |
download | pyload-84169f4862fa257e0a8a47e5f3578e9ec97ccf4f.tar.xz |
Plugins cleanup
Diffstat (limited to 'pyload/plugin/addon/UpdateManager.py')
-rw-r--r-- | pyload/plugin/addon/UpdateManager.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/pyload/plugin/addon/UpdateManager.py b/pyload/plugin/addon/UpdateManager.py index 57498d512..cf8349e79 100644 --- a/pyload/plugin/addon/UpdateManager.py +++ b/pyload/plugin/addon/UpdateManager.py @@ -222,7 +222,7 @@ class UpdateManager(Addon): for plugin in sorted(updatelist, key=itemgetter("type", "name")): filename = plugin['name'] - prefix = plugin['type'] + type = plugin['type'] version = plugin['version'] if filename.endswith(".pyc"): @@ -230,12 +230,6 @@ class UpdateManager(Addon): else: name = filename.replace(".py", "") - #@TODO: Remove in 0.4.10 - if prefix.endswith("s"): - type = prefix[:-1] - else: - type = prefix - plugins = getattr(self.core.pluginManager, "%sPlugins" % type) oldver = float(plugins[name]['version']) if name in plugins else None |