mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
[python] support of two ways of possible responses from Hatch (make it internal) (PY-60410)
(cherry picked from commit 79fd57310a7861e6ef4923296749d264b71df43c) GitOrigin-RevId: 61fdf630bd5ca133a59a6358112c0f6eecd0bafb
This commit is contained in:
committed by
intellij-monorepo-bot
parent
c81b5051f4
commit
cb4e99b9df
@@ -7,7 +7,7 @@ import com.intellij.platform.eel.provider.utils.stderrString
|
|||||||
* Hatch has two versions of messages in the stop function: "Expected prefix ..." (old_message) and "Finished expected prefix ..." (final_text)
|
* Hatch has two versions of messages in the stop function: "Expected prefix ..." (old_message) and "Finished expected prefix ..." (final_text)
|
||||||
* https://github.com/pypa/hatch/blob/4ebce0e1fe8bf0fcdef587a704c207a063d72575/src/hatch/cli/terminal.py#L65
|
* https://github.com/pypa/hatch/blob/4ebce0e1fe8bf0fcdef587a704c207a063d72575/src/hatch/cli/terminal.py#L65
|
||||||
*/
|
*/
|
||||||
fun EelProcessExecutionResult.isSuccessStop(expectedPrefix: String): Boolean {
|
internal fun EelProcessExecutionResult.isSuccessStop(expectedPrefix: String): Boolean {
|
||||||
require(expectedPrefix.isNotEmpty()) { "Expected prefix can't be empty" }
|
require(expectedPrefix.isNotEmpty()) { "Expected prefix can't be empty" }
|
||||||
if (exitCode != 0) return false
|
if (exitCode != 0) return false
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user