summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@whissi.de>2016-08-02 14:59:43 +0200
committerPatrice Clement <monsieurp@gentoo.org>2016-08-03 10:01:25 +0200
commit54f3752b3fb9ded157bdc634cc40998750bca525 (patch)
treec300517bf6e900e8f8fd81de26a26c08c331edd8 /net-firewall
parentapp-vim/genindent: Stable for amd64. Retroactively mark stable for the remain... (diff)
downloadgentoo-54f3752b3fb9ded157bdc634cc40998750bca525.tar.gz
gentoo-54f3752b3fb9ded157bdc634cc40998750bca525.tar.bz2
gentoo-54f3752b3fb9ded157bdc634cc40998750bca525.zip
net-firewall/shorewall: Fix REPLACING_VERSIONS usage
Gentoo-Bug: https://bugs.gentoo.org/589482 Package-Manager: portage-2.3.0 Closes: https://github.com/gentoo/gentoo/pull/2000 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'net-firewall')
-rw-r--r--net-firewall/shorewall/shorewall-5.0.10.ebuild40
-rw-r--r--net-firewall/shorewall/shorewall-5.0.4.ebuild40
-rw-r--r--net-firewall/shorewall/shorewall-5.0.7.2.ebuild40
-rw-r--r--net-firewall/shorewall/shorewall-5.0.9.2.ebuild40
4 files changed, 92 insertions, 68 deletions
diff --git a/net-firewall/shorewall/shorewall-5.0.10.ebuild b/net-firewall/shorewall/shorewall-5.0.10.ebuild
index f87c043d2af8..011c75dde90e 100644
--- a/net-firewall/shorewall/shorewall-5.0.10.ebuild
+++ b/net-firewall/shorewall/shorewall-5.0.10.ebuild
@@ -400,29 +400,35 @@ pkg_postinst() {
fi
- if [[ -n "${REPLACING_VERSIONS}" && ${REPLACING_VERSIONS} < ${MY_MAJOR_RELEASE_NUMBER} ]]; then
- # This is an upgrade
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${MY_MAJOR_RELEASE_NUMBER} ${v}; then
+ # This is an upgrade
- elog "You are upgrading from a previous major version. It is highly recommended that you read"
- elog ""
- elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
- elog " - http://shorewall.net/upgrade_issues.htm#idp8704902640"
-
- if use ipv4; then
- elog ""
- elog "You can auto-migrate your configuration using"
+ elog "You are upgrading from a previous major version. It is highly recommended that you read"
elog ""
- elog " # shorewall update -A"
+ elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
+ elog " - http://shorewall.net/Shorewall-5.html#idp51151872"
- if use ipv6; then
- elog " # shorewall6 update -A"
+ if use ipv4; then
+ elog ""
+ elog "You can auto-migrate your configuration using"
+ elog ""
+ elog " # shorewall update -A"
+
+ if use ipv6; then
+ elog " # shorewall6 update -A"
+ fi
+
+ elog ""
+ elog "But if you are not familiar with the \"shorewall[6] update\" command,"
+ elog "please read the shorewall[6] man page first."
fi
- elog ""
- elog "But if you are not familiar with the \"shorewall[6] update\" command,"
- elog "please read the shorewall[6] man page first."
+ # Show this elog only once
+ break
fi
- fi
+ done
if ! use init; then
elog ""
diff --git a/net-firewall/shorewall/shorewall-5.0.4.ebuild b/net-firewall/shorewall/shorewall-5.0.4.ebuild
index 0c749b300094..56004893d4af 100644
--- a/net-firewall/shorewall/shorewall-5.0.4.ebuild
+++ b/net-firewall/shorewall/shorewall-5.0.4.ebuild
@@ -400,29 +400,35 @@ pkg_postinst() {
fi
- if [[ -n "${REPLACING_VERSIONS}" && ${REPLACING_VERSIONS} < ${MY_MAJOR_RELEASE_NUMBER} ]]; then
- # This is an upgrade
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${MY_MAJOR_RELEASE_NUMBER} ${v}; then
+ # This is an upgrade
- elog "You are upgrading from a previous major version. It is highly recommended that you read"
- elog ""
- elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
- elog " - http://shorewall.net/upgrade_issues.htm#idp8704902640"
-
- if use ipv4; then
- elog ""
- elog "You can auto-migrate your configuration using"
+ elog "You are upgrading from a previous major version. It is highly recommended that you read"
elog ""
- elog " # shorewall update -A"
+ elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
+ elog " - http://shorewall.net/Shorewall-5.html#idp51151872"
- if use ipv6; then
- elog " # shorewall6 update -A"
+ if use ipv4; then
+ elog ""
+ elog "You can auto-migrate your configuration using"
+ elog ""
+ elog " # shorewall update -A"
+
+ if use ipv6; then
+ elog " # shorewall6 update -A"
+ fi
+
+ elog ""
+ elog "But if you are not familiar with the \"shorewall[6] update\" command,"
+ elog "please read the shorewall[6] man page first."
fi
- elog ""
- elog "But if you are not familiar with the \"shorewall[6] update\" command,"
- elog "please read the shorewall[6] man page first."
+ # Show this elog only once
+ break
fi
- fi
+ done
if ! use init; then
elog ""
diff --git a/net-firewall/shorewall/shorewall-5.0.7.2.ebuild b/net-firewall/shorewall/shorewall-5.0.7.2.ebuild
index 879e1b54a943..112aa2077c1f 100644
--- a/net-firewall/shorewall/shorewall-5.0.7.2.ebuild
+++ b/net-firewall/shorewall/shorewall-5.0.7.2.ebuild
@@ -400,29 +400,35 @@ pkg_postinst() {
fi
- if [[ -n "${REPLACING_VERSIONS}" && ${REPLACING_VERSIONS} < ${MY_MAJOR_RELEASE_NUMBER} ]]; then
- # This is an upgrade
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${MY_MAJOR_RELEASE_NUMBER} ${v}; then
+ # This is an upgrade
- elog "You are upgrading from a previous major version. It is highly recommended that you read"
- elog ""
- elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
- elog " - http://shorewall.net/upgrade_issues.htm#idp8704902640"
-
- if use ipv4; then
- elog ""
- elog "You can auto-migrate your configuration using"
+ elog "You are upgrading from a previous major version. It is highly recommended that you read"
elog ""
- elog " # shorewall update -A"
+ elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
+ elog " - http://shorewall.net/Shorewall-5.html#idp51151872"
- if use ipv6; then
- elog " # shorewall6 update -A"
+ if use ipv4; then
+ elog ""
+ elog "You can auto-migrate your configuration using"
+ elog ""
+ elog " # shorewall update -A"
+
+ if use ipv6; then
+ elog " # shorewall6 update -A"
+ fi
+
+ elog ""
+ elog "But if you are not familiar with the \"shorewall[6] update\" command,"
+ elog "please read the shorewall[6] man page first."
fi
- elog ""
- elog "But if you are not familiar with the \"shorewall[6] update\" command,"
- elog "please read the shorewall[6] man page first."
+ # Show this elog only once
+ break
fi
- fi
+ done
if ! use init; then
elog ""
diff --git a/net-firewall/shorewall/shorewall-5.0.9.2.ebuild b/net-firewall/shorewall/shorewall-5.0.9.2.ebuild
index f87c043d2af8..011c75dde90e 100644
--- a/net-firewall/shorewall/shorewall-5.0.9.2.ebuild
+++ b/net-firewall/shorewall/shorewall-5.0.9.2.ebuild
@@ -400,29 +400,35 @@ pkg_postinst() {
fi
- if [[ -n "${REPLACING_VERSIONS}" && ${REPLACING_VERSIONS} < ${MY_MAJOR_RELEASE_NUMBER} ]]; then
- # This is an upgrade
+ local v
+ for v in ${REPLACING_VERSIONS}; do
+ if ! version_is_at_least ${MY_MAJOR_RELEASE_NUMBER} ${v}; then
+ # This is an upgrade
- elog "You are upgrading from a previous major version. It is highly recommended that you read"
- elog ""
- elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
- elog " - http://shorewall.net/upgrade_issues.htm#idp8704902640"
-
- if use ipv4; then
- elog ""
- elog "You can auto-migrate your configuration using"
+ elog "You are upgrading from a previous major version. It is highly recommended that you read"
elog ""
- elog " # shorewall update -A"
+ elog " - /usr/share/doc/shorewall*/releasenotes.tx*"
+ elog " - http://shorewall.net/Shorewall-5.html#idp51151872"
- if use ipv6; then
- elog " # shorewall6 update -A"
+ if use ipv4; then
+ elog ""
+ elog "You can auto-migrate your configuration using"
+ elog ""
+ elog " # shorewall update -A"
+
+ if use ipv6; then
+ elog " # shorewall6 update -A"
+ fi
+
+ elog ""
+ elog "But if you are not familiar with the \"shorewall[6] update\" command,"
+ elog "please read the shorewall[6] man page first."
fi
- elog ""
- elog "But if you are not familiar with the \"shorewall[6] update\" command,"
- elog "please read the shorewall[6] man page first."
+ # Show this elog only once
+ break
fi
- fi
+ done
if ! use init; then
elog ""