3 Commity f08ac02a39 ... 1967c47d1d

Autor SHA1 Wiadomość Data
  ruknez 1967c47d1d Merge branch 'master' of https://devel.mephi.ru/LDA010/bug_ebuild 7 lat temu
  ruknez a201ca67c7 lll 7 lat temu
  ruknez 3a7769b814 1 7 lat temu
1 zmienionych plików z 21 dodań i 20 usunięć
  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
 
 
 }
+
+