net-firewall/arptables-0.0.5-r1: Don't change provder on upgrades
authorPatrick McLean <chutzpah@gentoo.org>
Sun, 10 May 2020 20:46:55 +0000 (13:46 -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/arptables/arptables-0.0.5-r1.ebuild

index 6dc0f8f781c3f38ea40c3365add0932ac363e2fa..9bfd2df4fba0c1c95ba880ca41975e642ce0d322 100644 (file)
@@ -45,7 +45,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 arptables symlinks to xtables-nft-multi before removal"
                eselect arptables set xtables-nft-multi
        else