Skip to content

Commit

Permalink
fix comps.xml generation
Browse files Browse the repository at this point in the history
  • Loading branch information
iarnell authored and adrianschroeter committed Aug 4, 2010
1 parent 5d54a0f commit 140a589
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/bs_publish
Expand Up @@ -545,8 +545,7 @@ sub createpatterns_comps {
my @grps;
for my $pattern (@$patterns) {
my $pat = XMLin($BSXML::pattern, $pattern->{'data'});
next unless $pattern->{'name'} =~ /^(.*)\.xml$/s;
my $grp = { 'id' => $1 };
my $grp = { 'id' => $pattern->{'name'} };
for (@{$pat->{'summary'}}) {
my $el = { '_content' => $_->{'_content'} };
$el->{'xml:lang'} = $_->{lang} if $_->{'lang'};
Expand Down Expand Up @@ -586,7 +585,7 @@ sub createpatterns_comps {
sub deletepatterns_comps {
my ($extrep) = @_;
for my $pat (ls("$extrep/repodata")) {
next unless $pat =~ /^group/;
next unless $pat =~ /group.xml/;
unlink("$extrep/repodata/$pat");
}
}
Expand Down

0 comments on commit 140a589

Please sign in to comment.