Commit 613b973e authored by Michael Pyne's avatar Michael Pyne

Allow repeated ignore-modules decls.

Noticed that some of the kf5-*-build-include files use multiple
ignore-modules declarations for a single module set.  I like this, it
allows for commenting why the modules are being ignored.  But it
shouldn't have worked before.  Now it does.
parent 6f64e27f
......@@ -112,10 +112,11 @@ sub modulesToIgnore
return @{$self->{module_ignore_decls}};
}
sub setModulesToIgnore
sub addModulesToIgnore
{
my ($self, @moduleDecls) = @_;
$self->{module_ignore_decls} = [@moduleDecls];
$self->{module_ignore_decls} //= [];
push @{$self->{module_ignore_decls}}, @moduleDecls;
return;
}
......@@ -159,7 +160,7 @@ sub setOption
die ksb::BuildException::Config->new('ignore-modules', 'Invalid ignore-modules');
}
$self->setModulesToIgnore(@modules);
$self->addModulesToIgnore(@modules);
delete $options{'ignore-modules'};
}
......
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