Don't register firmware already in /var/db/pkg
authorafresh1 <afresh1@openbsd.org>
Thu, 28 Sep 2023 01:18:52 +0000 (01:18 +0000)
committerafresh1 <afresh1@openbsd.org>
Thu, 28 Sep 2023 01:18:52 +0000 (01:18 +0000)
commit3d36271642337e392b0b42e27129bd6f40bd4a82
tree3e236b6e1a5931394aea2bdd5eafc14dd6d53b67
parent5b80eddbee48afe4e32d303eb83d18953fe6fe21
Don't register firmware already in /var/db/pkg

If installing firmware with `make install` from a port, it doesn't register
properly by adding "@option firmware" to the packing list, this means we ignore
that it is installed and reinstall it over and over with the registration
ending up in a tmpdir named directory inside the existing directory in
/var/db/pkg.

Unfortunately I don't know of a good way to automatically clean up from that,
so we just print a message after installing the actual firmware.

Reported by job@
No complaints about the patch on tech@ for several weeks.
usr.sbin/fw_update/fw_update.sh