mirror of
https://github.com/RubyMetric/chsrc
synced 2026-02-28 18:31:13 +08:00
Fix group target
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user