Просмотр исходного кода

I fixed this bug, now it seems to work with all variants of numbers

LDA010 лет назад: 7
Родитель
Сommit
5dd83301fb

+ 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}" ]] || [[ ${REPLACING_VERSIONS} < 4 ]]; then
+	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.?-r?} < 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}" ]] || [[ ${REPLACING_VERSIONS} < 4 ]]; then
+	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.?-r?} < 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}" ]] || [ "${REPLACING_VERSIONS}"  -lt  "4" ]; then
+	if [[ -z "${REPLACING_VERSIONS}" ]] || [[ $(echo "${REPLACING_VERSIONS%.?-r?} < 4.0" | bc)  -eq  1 ]]; then
 		echo
 		elog "Important 4.0+ updates"
 		elog "  - The on-wire protocol version has been changed."