Skip to content

Commit

Permalink
Use the lowercased tag for storing the value
Browse files Browse the repository at this point in the history
Fixes: 175ea22
  • Loading branch information
dirkmueller committed Jul 14, 2023
1 parent a6bae43 commit 52cf997
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Build/Rpm.pm
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ sub parse {
} elsif ($preamble && $line =~ /^(Source|Patch)(\d*)\s*(\s+[^:]*?)?:\s*(\S+)/i) {
my ($tagtype, $num, $tagextra, $val) = (lc($1), $2, $3, $4);
$num = $num ne '' ? 0 + $num : $autonum{$tagtype};
my $tag = "$1$num";
my $tag = "$tagtype$num";
if ($tag eq 'patch0' && exists($ret->{$tag})) {
# gross hack. Before autonumbering "Patch" and "Patch0" could
# exist. So take out the previous patch and add it back
Expand Down

0 comments on commit 52cf997

Please sign in to comment.