prevent empty %groups being created in compiled conf
this would happen if @all was used but no actual groups were defined, and would in turn cause a parse error on the compiled conf because it now ends with a 'false'. thanks to Jelle Raaijmakers
This commit is contained in:
parent
72e36f32aa
commit
b6d6260dbb
|
@ -156,7 +156,7 @@ sub new_repos {
|
|||
# normal repos
|
||||
my @repos = grep { $_ =~ $REPONAME_PATT and not /^@/ } sort keys %repos;
|
||||
# add in members of repo groups
|
||||
map { push @repos, keys %{ $groups{$_} } } grep { /^@/ } keys %repos;
|
||||
map { push @repos, keys %{ $groups{$_} } } grep { /^@/ and $_ ne '@all' } keys %repos;
|
||||
|
||||
for my $repo ( @{ sort_u( \@repos ) } ) {
|
||||
next unless $repo =~ $REPONAME_PATT; # skip repo patterns
|
||||
|
|
Loading…
Reference in a new issue