Skip to content

Commit

Permalink
[backend] fix perl syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianschroeter committed Nov 28, 2017
1 parent 92fc227 commit 548beed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/backend/bs_productconvert
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,13 @@ sub getUrl( $$$ ){
if ( "$url->{'name'}" eq "$searchstring" ){
if ( exists $url->{'arch'} && "$url->{'arch'}" eq "$arch" ) {
my $u = $url->{'_content'};
$u =~ s/%{_target_cpu}/$arch/g;
$u =~ s/%\{_target_cpu\}/$arch/g;
return $u;
} elsif (exists $url->{'arch'}) {
next;
} else {
my $u = $url->{'_content'};
$u =~ s/%{_target_cpu}/$arch/g;
$u =~ s/%\{_target_cpu\}/$arch/g;
$resulturl = $u;
# Continue searching, in case we find an architecture match
}
Expand Down

0 comments on commit 548beed

Please sign in to comment.