3 Коммиты f08ac02a39 ... 1967c47d1d

Автор SHA1 Сообщение Дата
  ruknez 1967c47d1d Merge branch 'master' of https://devel.mephi.ru/LDA010/bug_ebuild лет назад: 7
  ruknez a201ca67c7 lll лет назад: 7
  ruknez 3a7769b814 1 лет назад: 7
1 измененных файлов с 21 добавлено и 20 удалено
  1. 21 20
      gentoo/sys-cluster/torque/torque-6.0.1.ebuild

+ 21 - 20
gentoo/sys-cluster/torque/torque-6.0.1.ebuild

@@ -167,28 +167,29 @@ pkg_postinst() {
 
 
 	# if [[ -z "${REPLACING_VERSIONS}" ]] || [[ "$(get_major_version ${REPLACING_VERSIONS})"  -lt 4 ]]; 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."
-		elog "    Versions of Torque before 4.0.0 are no longer able to communicate."
-		elog "  - pbs_iff has been replaced by trqauthd, you will now need to add"
-		elog "    trqauthd to your default runlevel."
-	fi
+#	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."
+#		elog "    Versions of Torque before 4.0.0 are no longer able to communicate."
+#		elog "  - pbs_iff has been replaced by trqauthd, you will now need to add"
+#		elog "    trqauthd to your default runlevel."
+#	fi
 
 	local v
-#	for v in ${REPLACING_VERSIONS}; do
-#            if  version_is_at_least 4.0 ${v}; then
-#        	echo
-#                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."
-#                elog "  - pbs_iff has been replaced by trqauthd, you will now need to add"
-#                elog "    trqauthd to your default runlevel."        
-#		break
-#            fi
-#        done
-
+	for v in ${REPLACING_VERSIONS}; do
+            if ! version_is_at_least 4.0 ${v}; then
+        	echo
+                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."
+                elog "  - pbs_iff has been replaced by trqauthd, you will now need to add"
+                elog "    trqauthd to your default runlevel."        
+		break
+            fi
+        done
 
 
 }
+
+