From 51df6120696e2e18ac4aca500d298100e35ff906 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=BCdiger=20Oertel?= Date: Thu, 11 Apr 2024 19:08:03 +0200 Subject: [PATCH] [backend] make BSSrcDiff a little smarter do not compare patches for different CVE or bug entries, these can not be compared like patches for different versions would --- src/backend/BSSrcServer/Srcdiff.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/BSSrcServer/Srcdiff.pm b/src/backend/BSSrcServer/Srcdiff.pm index 8b1e5228299..f5b8dcd521c 100644 --- a/src/backend/BSSrcServer/Srcdiff.pm +++ b/src/backend/BSSrcServer/Srcdiff.pm @@ -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;