Use chsrc_alert2()

This commit is contained in:
Aoran Zeng
2025-07-21 22:21:07 +08:00
parent fa4a69b4b9
commit 92f341179b
16 changed files with 29 additions and 28 deletions

View File

@@ -15,7 +15,7 @@
void
pl_python_poetry_getsrc (char *option)
{
chsrc_note2 ("poetry换源情况: 请查本项目 pyproject.toml 中 [[tool.poetry.source]]");
chsrc_note2 ("poetry换源情况: 请查本项目 pyproject.toml 中 [[tool.poetry.source]]");
}
@@ -34,7 +34,7 @@ pl_python_poetry_setsrc (char *option)
char *cmd = NULL;
if (!chsrc_in_local_mode())
chsrc_note2 ("Poertry 仅支持项目级换源");
chsrc_alert2 ("Poetry 仅支持项目级换源");
cmd = xy_2strjoin ("poetry source add my_mirror ", source.url);
chsrc_run (cmd, RunOpt_No_Last_New_Line);

View File

@@ -48,7 +48,7 @@ pl_python_group_setsrc (char *option)
"pip, Poetry, PDM. If you need to change the source independently, "
"please run independently `chsrc set <pkg-manager>`"
: "将同时更换4个包管理器 pip, Poetry, PDM, uv 的源,若需要独立换源,请独立运行 chsrc set <pkg-manager>";
chsrc_note2 (msg);
chsrc_alert2 (msg);
}
bool pdm_exist = false,