瀏覽代碼

Allitel fix

LDA010 7 年之前
父節點
當前提交
9892f1185c

+ 1 - 1
gentoo/sys-cluster/torque/torque-4.1.7-r1.ebuild

@@ -174,7 +174,7 @@ pkg_postinst() {
 	echo ""
 	elog "    For a basic setup, you may use emerge --config ${PN}"
 	echo ""
-	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.?-r?} < 4.0" | bc)  -eq 1 ]]; then
+	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.*} < 4.0" | bc)  -eq 1 ]]; then
 		elog "Important 4.0+ updates"
 		elog "  - The on-wire protocol version has been changed."
 		elog "    Versions of Torque before 4.0.0 are no longer able to communicate."

+ 1 - 1
gentoo/sys-cluster/torque/torque-4.2.9-r5.ebuild

@@ -172,7 +172,7 @@ pkg_postinst() {
 	elog "    If this is the first time torque has been installed, then you are not"
 	elog "ready to start the server.  Please refer to the documentation located at:"
 	elog "http://docs.adaptivecomputing.com/torque/${PN//./-}/Content/topics/1-installConfig/initializeConfigOnServer.htm"
-	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.?-r?} < 4.0" | bc)  -eq 1 ]]; then
+	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.*} < 4.0" | bc)  -eq 1 ]]; then
 		echo
 		elog "Important 4.0+ updates"
 		elog "  - The on-wire protocol version has been changed."

+ 1 - 1
gentoo/sys-cluster/torque/torque-6.0.1.ebuild

@@ -164,7 +164,7 @@ pkg_postinst() {
 	elog "    If this is the first time torque has been installed, then you are not"
 	elog "ready to start the server.  Please refer to the documentation located at:"
 	elog "http://docs.adaptivecomputing.com/torque/${PN//./-}/Content/topics/1-installConfig/initializeConfigOnServer.htm"
-	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.?-r?} < 4.0" | bc)  -eq  1 ]]; then
+	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.*} < 4.0" | bc)  -eq  1 ]]; then
 		echo
 		elog "Important 4.0+ updates"
 		elog "  - The on-wire protocol version has been changed."