diff --git a/src/framework/chef.c b/src/framework/chef.c index 16e4956..b191797 100644 --- a/src/framework/chef.c +++ b/src/framework/chef.c @@ -101,6 +101,18 @@ chef_set_sources_speed_measure_url_with_postfix (Target_t *target, char *postfix } +/** + * @note 用于: 组中的 item target 在 standalone 模式时正确填充源信息 + */ +void +chef_use_other_target_sources (Target_t *this, Target_t *other) +{ + if (!other->inited) other->preludefn(); + this->sources = other->sources; + this->sources_n = other->sources_n; +} + + void chef_allow_english (Target_t *target) { diff --git a/src/recipe/lang/Python/PDM.c b/src/recipe/lang/Python/PDM.c index 44fc6ff..1cb7396 100644 --- a/src/recipe/lang/Python/PDM.c +++ b/src/recipe/lang/Python/PDM.c @@ -21,6 +21,7 @@ pl_python_pdm_prelude (void) chef_allow_english(this); chef_allow_user_define(this); + chef_use_other_target_sources (this, &pl_python_group_target); }