Skip to content

Commit

Permalink
[backend] bs_worker: fix undefined variable reference
Browse files Browse the repository at this point in the history
Fixes commit 82b6a36.
  • Loading branch information
andreas-schwab committed Jul 5, 2023
1 parent e0ffa8e commit b4e75ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_worker
Original file line number Diff line number Diff line change
Expand Up @@ -2835,8 +2835,8 @@ sub getbinaries {
my $obdep = { 'name' => $_, 'hdrmd5' => $bv->{'hdrmd5'}, 'project' => $imageorigins->{$_}->[0], 'repository' => $imageorigins->{$_}->[1] };
if ($bv->{'evr'}) {
$obdep->{'version'} = $bv->{'evr'};
$obdep->{'epoch'} = $1 if $bv->{'version'} =~ s/^([0-9]+)://;
$obdep->{'release'} = $1 if $bv->{'version'} =~ s/-([^\-]+)$//;
$obdep->{'epoch'} = $1 if $obdep->{'version'} =~ s/^([0-9]+)://;
$obdep->{'release'} = $1 if $obdep->{'version'} =~ s/-([^\-]+)$//;
$obdep->{'arch'} = $bv->{'arch'} if $bv->{'arch'};
}
push @$outbdep, $obdep;
Expand Down

0 comments on commit b4e75ba

Please sign in to comment.