See the tracker bug. if [[ ${REPLACING_VERSIONS} < 3 ]]; then This doesn't account for RV being empty or having >1 value. Furthermore, < is lexicographical string comparison, so 10 < 3.
commit 67c8fba9a98da19f01e21f6c322d95097bd5aeb7 Author: Justin Lecher <jlec@gentoo.org> Date: Sun Oct 23 22:52:49 2016 +0200 net-fs/netatalk: Properly use REPLACING_VERSIONS Drop old Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=589486 Package-Manager: portage-2.3.2 Signed-off-by: Justin Lecher <jlec@gentoo.org> https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=67c8fba9a98da19f01e21f6c322d95097bd5aeb7