org.guifications.plugins.buildsystem_rewrite: 14303420b931f0b4a018b5c79a626be9ba00fcdc
grim at guifications.org
grim at guifications.org
Tue Apr 29 22:55:08 CDT 2008
-----------------------------------------------------------------
Revision: 14303420b931f0b4a018b5c79a626be9ba00fcdc
Ancestor: 60da56882d25193d0ce70fbf4a396056abaec830
Author: grim at guifications.org
Date: 2008-04-29T23:13:19
Branch: org.guifications.plugins.buildsystem_rewrite
Modified files:
plugin_pack.py
ChangeLog:
this is SOOOOOOOOO much cleaner
-----------------------------------------------------------------
This revision's diffstat output:
plugin_pack.py | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
-------------- next part --------------
============================================================
--- plugin_pack.py 7db0359c5344e55a38ed0e6e3148bd13654d6487
+++ plugin_pack.py d64766a8a08c708ff13018cc9d4ce827d8edf21c
@@ -112,11 +112,8 @@ class PluginPack:
# this is kind of hacky, but if we have types, we check to see
# if the type is in list of types to load.
- if types:
- try:
- types.index(p.type)
- except ValueError:
- continue
+ if types and not p.type in types:
+ continue
# now we check if the give plugins depends match the search
# depends
@@ -144,11 +141,8 @@ class PluginPack:
for name in self.plugins.keys():
plugin = self.plugins[name]
- try:
- plugin.depends.index(dep)
+ if dep in plugin.depends:
list.append(plugin)
- except ValueError:
- pass
list.sort()
More information about the Plugins-commits
mailing list