mirror of
https://github.com/RubyMetric/chsrc
synced 2025-10-20 18:05:08 +08:00
Remove def_upstream
This commit is contained in:
@@ -1,33 +1,37 @@
|
||||
/** ------------------------------------------------------------
|
||||
* SPDX-License-Identifier: GPL-3.0-or-later
|
||||
* -------------------------------------------------------------
|
||||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-10>
|
||||
* Last Modified : <2024-08-09>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
static MirrorSite_t NugetOrg =
|
||||
{
|
||||
IS_UpstreamProvider,
|
||||
"nuget.org", "NuGet Org", "Nuget Organization", "https://www.nuget.org/",
|
||||
{SKIP, ToFill, ToFill, NULL, ROUGH}
|
||||
};
|
||||
def_target(pl_nuget);
|
||||
|
||||
/**
|
||||
* @update 2024-04-18
|
||||
* @note {
|
||||
* 暂时未实现该换源功能,可参照
|
||||
* https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language
|
||||
* }
|
||||
*/
|
||||
static Source_t pl_nuget_sources[] =
|
||||
void
|
||||
pl_nuget_prelude ()
|
||||
{
|
||||
{&UpstreamProvider, NULL, NULL},
|
||||
{&NugetOrg, "https://www.nuget.org/api/v2/", NULL},
|
||||
use_this(pl_nuget);
|
||||
|
||||
chef_set_created_on (this, "2023-09-10");
|
||||
chef_set_last_updated (this, "2025-08-10");
|
||||
chef_set_sources_last_updated (this, "2024-04-18");
|
||||
|
||||
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
|
||||
chef_set_chef (this, NULL, NULL);
|
||||
chef_set_sous_chefs (this, 0);
|
||||
chef_set_contributors (this, 0);
|
||||
|
||||
chef_allow_get();
|
||||
chef_allow_set();
|
||||
|
||||
chef_allow_local_mode (this, CanNot, NULL, NULL);
|
||||
chef_forbid_english(this);
|
||||
chef_forbid_user_define(this);
|
||||
|
||||
chef_set_note ("暂时未实现该换源功能,可参照 https://mirrors.huaweicloud.com/mirrorDetail/5ebf85de07b41baf6d0882ab?mirrorName=nuget&catalog=language", NULL);
|
||||
|
||||
def_sources_begin()
|
||||
{&upstream, "https://www.nuget.org/api/v3/", DelegateToUpstream},
|
||||
{&Huawei, "https://mirrors.huaweicloud.com/repository/nuget/v3", DelegateToMirror}
|
||||
};
|
||||
def_sources_n(pl_nuget);
|
||||
def_sources_end()
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
@@ -42,23 +46,3 @@ pl_nuget_setsrc (char *option)
|
||||
{
|
||||
chsrc_error ("暂时无法为NuGet换源,若有需求,请提交issue");
|
||||
}
|
||||
|
||||
|
||||
Feature_t
|
||||
pl_nuget_feat (char *option)
|
||||
{
|
||||
Feature_t f = {0};
|
||||
|
||||
f.can_get = false;
|
||||
f.can_reset = false;
|
||||
|
||||
f.cap_locally = CanNot;
|
||||
f.cap_locally_explain = NA;
|
||||
f.can_english = false;
|
||||
f.can_user_define = false;
|
||||
|
||||
f.note = NULL;
|
||||
return f;
|
||||
}
|
||||
|
||||
def_target_gsf(pl_nuget);
|
||||
|
Reference in New Issue
Block a user