Fix group target

This commit is contained in:
Aoran Zeng
2025-08-10 20:14:30 +08:00
parent 827a26951b
commit 915dbe1477
12 changed files with 37 additions and 31 deletions

View File

@@ -44,9 +44,25 @@ chef_allow_local_mode (Target_t *target, Capability_t cap, const char *explain_z
return;
target->cap_local = cap;
if (cap == FullyCan)
{
target->cap_local_explain = xy_strdup (CHINESE ? "完全支持项目级换源" : "Supports project-level source switching");
return;
}
target->cap_local_explain = xy_strdup (CHINESE ? explain_zh : explain_en);
}
chef_forbid_local_mode (Target_t *target)
{
if (!target)
return;
target->cap_local = CanNot;
target->cap_local_explain = xy_strdup (CHINESE ? "无法进行项目级换源" : "Unable to perform project-level source switching");
}
void
chef_allow_user_define (Target_t *target)