diff options
author | 2008-06-14 14:04:51 +0000 | |
---|---|---|
committer | 2008-06-14 14:04:51 +0000 | |
commit | 8850540edf2c671976b7277d841c259f66be473f (patch) | |
tree | c958212860f54a05da9a32c502410f170acd0384 /net-firewall/iptables/iptables-1.3.8-r3.ebuild | |
parent | clean up (diff) | |
download | gentoo-2-8850540edf2c671976b7277d841c259f66be473f.tar.gz gentoo-2-8850540edf2c671976b7277d841c259f66be473f.tar.bz2 gentoo-2-8850540edf2c671976b7277d841c259f66be473f.zip |
Bug #226505 - For compatibility with phase execution order in
>=portage-2.1.5, call has_version inside pkg_preinst instead of
pkg_postinst.
(Portage version: 2.2_pre10652/cvs/Linux 2.6.25-0518-x86-64 i686)
Diffstat (limited to 'net-firewall/iptables/iptables-1.3.8-r3.ebuild')
-rw-r--r-- | net-firewall/iptables/iptables-1.3.8-r3.ebuild | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/net-firewall/iptables/iptables-1.3.8-r3.ebuild b/net-firewall/iptables/iptables-1.3.8-r3.ebuild index 681e41838b30..d04e1eecc7f0 100644 --- a/net-firewall/iptables/iptables-1.3.8-r3.ebuild +++ b/net-firewall/iptables/iptables-1.3.8-r3.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.3.8-r3.ebuild,v 1.9 2008/03/16 08:48:43 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-firewall/iptables/iptables-1.3.8-r3.ebuild,v 1.10 2008/06/14 14:04:51 zmedico Exp $ inherit eutils flag-o-matic toolchain-funcs linux-info @@ -192,6 +192,11 @@ src_install() { fi } +pkg_preinst() { + has_version "=${CATEGORY}/${PN}-1.2*" + upgrade_from_1_2_x=$? +} + pkg_postinst() { elog "This package now includes an initscript which loads and saves" elog "rules stored in /var/lib/iptables/rules-save" @@ -213,7 +218,7 @@ pkg_postinst() { ewarn " net.ipv6.ip_forward = 1" ewarn "for ipv6." fi - if has_version '=net-firewall/iptables-1.2*' ; then + if [[ $upgrade_from_1_2_x = 0 ]] ; then ewarn ewarn "When upgrading from iptables-1.2.x, you may be unable to remove" ewarn "rules added with iptables-1.2.x. This is a known issue, please see:" |