@@ -10,7 +10,7 @@ pl_python_pip_prelude (void)
1010 chef_prep_this (pl_python_pip , gsr );
1111
1212 chef_set_created_on (this , "2023-09-03" );
13- chef_set_last_updated (this , "2025-09-10 " );
13+ chef_set_last_updated (this , "2025-09-12 " );
1414 chef_set_sources_last_updated (this , "2025-07-11" );
1515
1616 chef_set_chef (this , NULL );
@@ -31,12 +31,13 @@ pl_python_pip_getsrc (char *option)
3131 char * py_prog_name = NULL ;
3232 pl_python_get_py_program_name (& py_prog_name );
3333
34- char * cmd = xy_2strcat (py_prog_name , " -m pip config get global.index-url 2>/dev/null " );
35-
36- int status = system (cmd );
34+ char * cmd = xy_2strcat (py_prog_name , " -m pip config get global.index-url" );
35+
36+ int status = chsrc_run_directly (cmd );
3737 if (0 == status )
3838 {
3939 // 执行成功时显示当前源
40+ xy_noop ();
4041 }
4142 else
4243 {
@@ -45,9 +46,9 @@ pl_python_pip_getsrc (char *option)
4546 chsrc_note2 ("No source configured in pip, showing default upstream source:" );
4647 else
4748 chsrc_note2 ("pip 中未配置源,显示默认上游源:" );
48-
49+
4950 Source_t default_source = chsrc_yield_source (& pl_python_group_target , "upstream" );
50- chsrc_log (default_source .url );
51+ say (default_source .url );
5152 }
5253}
5354
0 commit comments