now we no longer go through temporary files when names don't change,
authorespie <espie@openbsd.org>
Sun, 8 May 2022 11:06:06 +0000 (11:06 +0000)
committerespie <espie@openbsd.org>
Sun, 8 May 2022 11:06:06 +0000 (11:06 +0000)
commit826d76ee2b1d88c47af362d5f9450cd9cfdd2f75
tree8ecfe288480ec946d99b5076caa8c84c28819d7d
parent8b50cac1a4b61fa1ae7e8b76cc77085fd8e089a4
now we no longer go through temporary files when names don't change,
make the matching algorithm between the old and the new package more
precise: keep a list of matching checksums, instead of just one candidate.

For starters, empty files will always yield the same checksum, but it seems
some software (python for instance) loves installing multiple copies of
the same file.  This does prevent 500 "name mismatches" out of 2500 in
python-3.9, for instance.
usr.sbin/pkg_add/OpenBSD/PkgAdd.pm