Skip to content

Commit

Permalink
Normalize epoch 0 away when reading the module info
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Nov 21, 2019
1 parent 6961750 commit 5bd172b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Build/Modules.pm
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ sub parse {
next unless $data->{'artifacts'};
my $rpms = $data->{'artifacts'}->{'rpms'};
next unless $rpms && ref($rpms) eq 'ARRAY';
push @{$res->{$_}}, $module for @$rpms;
for my $rpm (@$rpms) {
my $nrpm = $rpm;
$nrpm =~ s/-0:([^-]*-[^-]*\.[^\.]*)$/-$1/;
push @{$res->{$nrpm}}, $module;
}
}
# unify
for (values %$res) {
Expand Down

0 comments on commit 5bd172b

Please sign in to comment.