Commit 8fed7121 authored by Tristan Gingold's avatar Tristan Gingold simplify code.

parent 0cc0718e
......@@ -55,16 +55,6 @@ class Action(object):
return True
return False
def _add(self, new_module):
"""Add the given new module if this is not already in the pool"""
assert isinstance(new_module, Module), "Expect a Module instance"
if self.__contains(new_module):
if new_module.isfetched:
for mod in new_module.submodules():
def new_module(self, parent, url, source, fetchto):
"""Add new module to the pool.
......@@ -75,7 +65,8 @@ class Action(object):
args = ModuleArgs()
args.set_args(parent, url, source, fetchto)
new_module = Module(args, self)
if not self.__contains(new_module):
return new_module
def load_all_manifests(self):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment