diff --git a/osc_expand_link.pl b/osc_expand_link.pl index 4aea9332..aebc33f8 100755 --- a/osc_expand_link.pl +++ b/osc_expand_link.pl @@ -143,7 +143,7 @@ to retrieve the original specfile behind a link. my $file_re = "\Q$file\E"; $file_re =~ s{\\\*}{\.\*}g; my @match = grep { $_ =~ m{^$file_re$} } @list; die "pattern $file not found in\n @list\n" unless @match; - $file = @match[0]; + $file = $match[0]; } $url .= "/$file";