Skip to content

Commit

Permalink
[backend] make BSSrcDiff a little smarter
Browse files Browse the repository at this point in the history
do not compare patches for different CVE or bug entries, these
can not be compared like patches for different versions would
  • Loading branch information
bugfinder committed Apr 11, 2024
1 parent b145265 commit 51df612
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/backend/BSSrcServer/Srcdiff.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1013,6 +1013,7 @@ sub findsim {
my $fc = $fc{$f};
my $ft = $ft{$f};
next unless defined $fc;
next if $fc =~ /^CVE-[0-9]*-[0-9]*.patch/ || $fc =~ /^b..-[0-9]*.patch/;
my @s = grep {defined($fc{$_}) && $fc{$_} eq $fc && $ft{$_} eq $ft} sort keys %s;
if (@s) {
unshift @s, grep {$old->{$_} eq $new->{$f}} @s if @s > 1;
Expand Down

0 comments on commit 51df612

Please sign in to comment.