net-firewall/ebtables-2.0.11-r1: Don't change provder on upgrades
authorPatrick McLean <chutzpah@gentoo.org>
Sun, 10 May 2020 20:48:54 +0000 (13:48 -0700)
committerPatrick McLean <chutzpah@gentoo.org>
Sun, 10 May 2020 20:49:04 +0000 (13:49 -0700)
Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
net-firewall/ebtables/ebtables-2.0.11-r1.ebuild

index 4090f230c8007827622bf45773a3d9c09bc55778..038a8e1204cbbe6167bd034ccd986a9dd80035b3 100644 (file)
@@ -96,7 +96,7 @@ pkg_postinst() {
 }
 
 pkg_prerm() {
-       if has_version 'net-firewall/iptables[nftables]'; then
+       if [[ -z ${REPLACED_BY_VERSION} ]] && has_version 'net-firewall/iptables[nftables]'; then
                elog "Resetting ebtables symlinks to xtables-nft-multi before removal"
                eselect ebtables set xtables-nft-multi
        else