Skip to content
Snippets Groups Projects
Commit ea9749ca authored by Anders Blomdell's avatar Anders Blomdell
Browse files

Fixed excluding of non-existent groups

parent ce5124ea
Branches
No related tags found
No related merge requests found
...@@ -37,9 +37,13 @@ class Installer: ...@@ -37,9 +37,13 @@ class Installer:
self.symlink = {} self.symlink = {}
def add_group(self, name, exclude=[], chain=[]): def add_group(self, name, exclude=[], chain=[]):
group = group_node(name, None, self)
if group in exclude:
mio.log.log(CHATTY, "excluding group '%s'" % group.name)
return None
g = self.repository.get(name) g = self.repository.get(name)
if g == None: if g == None:
return return None
exclude = exclusion_closure(exclude, g._parent) exclude = exclusion_closure(exclude, g._parent)
exclude = exclusion_closure(exclude, g) exclude = exclusion_closure(exclude, g)
group = group_node(g.name[0], g, self) group = group_node(g.name[0], g, self)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment