sys-fs/eudev: ensure REPLACING_VERSIONS is processed as a list
authorIan Stakenvicius <axs@gentoo.org>
Mon, 25 Jul 2016 16:15:27 +0000 (12:15 -0400)
committerIan Stakenvicius <axs@gentoo.org>
Mon, 25 Jul 2016 16:21:27 +0000 (12:21 -0400)
commit739172f697490fcb8eff44e3d94ff94b867cfaa2
tree09ecc047b610c4ad4bea9c3db9e29208a06ea3a7
parent1b8d26f9d99f988a16193b3f1e40a078ea1bc682
sys-fs/eudev: ensure REPLACING_VERSIONS is processed as a list

REPLACING_VERSIONS is used in eudev ebuilds during pkg_postinst to determine
when udevadm control --reload should be called:
- when it is a new installation of udev
- when it is a re-emerge of the same version (or a revision-only upgrade)

REPLACING_VERSIONS *should* only ever have zero or one values, but it is
theoretically possible for it to have more than that if, for instance, a previous
upgrade failed to complete during qmerge.  If this is the case, and only one of
the multiple versions match the version of the ebuild, then we also abort as we
don't know which one is the "good" one.

Also removed duplicate code that reloads the hwdb (looks like it was a copy-paste
from sys-fs/udev)

Bug: http://bugs.gentoo.org/589530

Package-Manager: portage-2.2.28
sys-fs/eudev/eudev-1.10-r2.ebuild
sys-fs/eudev/eudev-1.9-r2.ebuild
sys-fs/eudev/eudev-3.1.2.ebuild
sys-fs/eudev/eudev-3.1.5.ebuild
sys-fs/eudev/eudev-3.2.ebuild
sys-fs/eudev/eudev-4.9999.ebuild
sys-fs/eudev/eudev-9999.ebuild