summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2021-07-23 11:54:56 -0400
committerMike Gilbert <floppym@gentoo.org>2021-07-23 11:57:16 -0400
commita950794bde5d33d035a3726f99cc3cbfa618c437 (patch)
treea269722f914dd2fcfcb1f7ba9b5ae00f9fcae5ad /net-firewall
parentsys-fs/mtools: Removed old (diff)
downloadgentoo-a950794bde5d33d035a3726f99cc3cbfa618c437.tar.gz
gentoo-a950794bde5d33d035a3726f99cc3cbfa618c437.tar.bz2
gentoo-a950794bde5d33d035a3726f99cc3cbfa618c437.zip
net-firewall/iptables: bypass 'eselect iptables unset' on upgrades
Closes: https://bugs.gentoo.org/760246 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/iptables/iptables-1.8.7.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/net-firewall/iptables/iptables-1.8.7.ebuild b/net-firewall/iptables/iptables-1.8.7.ebuild
index a6ba56cb3543..079e1fb2cbaf 100644
--- a/net-firewall/iptables/iptables-1.8.7.ebuild
+++ b/net-firewall/iptables/iptables-1.8.7.ebuild
@@ -155,8 +155,10 @@ pkg_postinst() {
}
pkg_prerm() {
- elog "Unsetting iptables symlinks before removal"
- eselect iptables unset
+ if [[ -z ${REPLACED_BY_VERSION} ]]; then
+ elog "Unsetting iptables symlinks before removal"
+ eselect iptables unset
+ fi
if ! has_version 'net-firewall/ebtables'; then
elog "Unsetting ebtables symlinks before removal"