summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/UpdateManager.py
diff options
context:
space:
mode:
authorGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 18:31:46 +0100
committerGravatar Pedro Algarvio <pedro@algarvio.me> 2012-01-22 18:31:46 +0100
commit4741b4f8816bff7b0c803ac057c60b35e9909ad4 (patch)
tree775293bbd0453cae01b73d3c6bcef88bd26a6900 /module/plugins/hooks/UpdateManager.py
parentMerge branches. (diff)
parentundelete DlFreeFr (diff)
downloadpyload-4741b4f8816bff7b0c803ac057c60b35e9909ad4.tar.xz
Merge stable.
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r--module/plugins/hooks/UpdateManager.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py
index d0c7f213d..230a6e858 100644
--- a/module/plugins/hooks/UpdateManager.py
+++ b/module/plugins/hooks/UpdateManager.py
@@ -15,7 +15,6 @@
along with this program; if not, see <http://www.gnu.org/licenses/>.
@author: RaNaN
- @interface-version: 0.1
"""
import sys
@@ -30,7 +29,7 @@ from module.plugins.Hook import threaded, Expose, Hook
class UpdateManager(Hook):
__name__ = "UpdateManager"
- __version__ = "0.1"
+ __version__ = "0.12"
__description__ = """checks for updates"""
__config__ = [("activated", "bool", "Activated", "True"),
("interval", "int", "Check interval in minutes", "360"),
@@ -129,6 +128,7 @@ class UpdateManager(Hook):
else:
name = filename.replace(".py", "")
+ #TODO: obsolete
if prefix.endswith("s"):
type = prefix[:-1]
else:
@@ -165,7 +165,7 @@ class UpdateManager(Hook):
f.close()
self.updated = True
- reloads.append((type, name))
+ reloads.append((prefix, name))
self.reloaded = self.core.pluginManager.reloadPlugins(reloads)
@@ -176,7 +176,7 @@ class UpdateManager(Hook):
self.last_check = time()
modules = filter(
- lambda m: m and (m.__name__.startswith("module.plugins.") or m.__name__.startswith("userplugins.")),
+ lambda m: m and (m.__name__.startswith("module.plugins.") or m.__name__.startswith("userplugins.")) and m.__name__.count(".") >= 2,
sys.modules.itervalues())
reloads = []
@@ -196,4 +196,4 @@ class UpdateManager(Hook):
reloads.append(id)
self.mtimes[id] = mtime
- self.core.pluginManager.reloadPlugins(reloads) \ No newline at end of file
+ self.core.pluginManager.reloadPlugins(reloads)