summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/plugins.py
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-04-18 15:58:46 +0200
committerMartin Sivak <msivak@redhat.com>2008-04-18 15:58:46 +0200
commite8a8395ccc7f48f170bef7f348096f2a91f8d10d (patch)
tree29659d8b31d2faffb3c1bcd88c68459e0b827c13 /pyfirstaidkit/plugins.py
parent3c7dbfa8e712ea250f3da0aee2bc6d9eab5b265c (diff)
downloadfirstaidkit-e8a8395ccc7f48f170bef7f348096f2a91f8d10d.tar.gz
firstaidkit-e8a8395ccc7f48f170bef7f348096f2a91f8d10d.tar.xz
firstaidkit-e8a8395ccc7f48f170bef7f348096f2a91f8d10d.zip
Flag system is able to list all known flags
Diffstat (limited to 'pyfirstaidkit/plugins.py')
-rw-r--r--pyfirstaidkit/plugins.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pyfirstaidkit/plugins.py b/pyfirstaidkit/plugins.py
index 805667f..6bef7da 100644
--- a/pyfirstaidkit/plugins.py
+++ b/pyfirstaidkit/plugins.py
@@ -465,6 +465,8 @@ class PluginSystem(object):
level = PLUGINSYSTEM, origin = self)
moduleinfo = imp.find_module(m, [path])
module = imp.load_module(".".join([FirstAidKit.__name__, m]), *moduleinfo)
+ self._deps.introduce(module.get_plugin().getDeps()) #notify the dependency system about all used dependencies
+ self._deps.introduce(module.get_plugin().getConflicts()) #notify the dependency system about all used reverse-dependencies
self._plugins[m] = module
self._reporting.debug("Module %s successfully imported with basedir %s" %
(m, os.path.dirname(module.__file__)), level = PLUGINSYSTEM, origin = self)