findfileconflicts: Ignore kernel installed certificates in /etc/uefi/certs

The file names are generated out of the sha1sum of the file content. Thus we
know if the file has the same name, it has the same content as well. Multiple
packages are allowed to own the same file with the same content. This is already
proven functional by the kernel being flavor:multiversion - the kernel can
be installed in multiple versions already (which the checked never would have
caught file conflicts for: we only check against current packages in the distro)

Fixes issue #2350
This commit is contained in:
Dominique Leuenberger 2019-12-13 13:47:34 +01:00
parent 9a8ba5b54b
commit b635702b67
Signed by untrusted user: dimstar
GPG Key ID: E69F22089B497C99

View File

@ -355,7 +355,7 @@ for my $tc (sort keys %tocheck) {
}
# got one!
$f =~ /^(\d+)\/(.*)/;
push @con, "$dirs[$1]$2$info";
push @con, "$dirs[$1]$2$info" unless "$dirs[$1]$2" =~ m{/etc/uefi/certs/.*crt};
}
next unless @con;
my @sp1 = split(' ', $p1);