Skip to content

Commit

Permalink
Silence warnings when running with perl 5.22
Browse files Browse the repository at this point in the history
  • Loading branch information
DimStar77 committed Sep 2, 2015
1 parent 68ca749 commit d244df0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prepare_spec
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ sub read_and_parse_old_spec {
}
# evil epoch removal
next if ( /^Epoch:/ );
$_ =~ s/%{?epoch}?[:-]//g;
$_ =~ s/%\{?epoch}?[:-]//g;
$_ =~ s/ 0:/ /g if ( /^requires/i || /^buildreq/i );

if ( /^BuildRequires:/i || /^Requires:/i || /^Provides:/i || /^Obsoletes:/i ) {
Expand Down Expand Up @@ -438,7 +438,7 @@ sub read_and_parse_old_spec {
for my $xx (sort { length($b) <=> length($a) } keys (%{$definelist})) {
$_ =~ s/\Q$xx\E/$definelist->{$xx}/;
}
$_ =~ s/%{\?[^\}]*}//;
$_ =~ s/%\{\?[^\}]*}//;
if ($debug) {
warn "after: $_\n";
}
Expand Down

0 comments on commit d244df0

Please sign in to comment.