mirror of
https://github.com/RubyMetric/chsrc.git
synced 2025-01-22 23:43:00 +08:00
Split solus out
This commit is contained in:
parent
03e4556718
commit
fa96a44bab
|
@ -357,23 +357,11 @@ os_alma_sources[] = {
|
|||
{&Sjtug_Zhiyuan, "https://mirrors.sjtug.sjtu.edu.cn/almalinux"},
|
||||
{&Zju, "https://mirrors.zju.edu.cn/almalinux"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/almalinux"},
|
||||
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
os_solus_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"}
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
|
@ -642,7 +630,6 @@ def_sources_n(os_kali); def_sources_n(os_opensuse);
|
|||
def_sources_n(os_arch); def_sources_n(os_archlinuxcn);
|
||||
def_sources_n(os_msys2); def_sources_n(os_gentoo);
|
||||
def_sources_n(os_rocky); def_sources_n(os_alma);
|
||||
def_sources_n(os_solus);
|
||||
|
||||
def_sources_n(os_trisquel); def_sources_n(os_linuxlite); def_sources_n(os_raspberrypi);
|
||||
def_sources_n(os_armbian);
|
||||
|
|
19
src/chsrc.c
19
src/chsrc.c
|
@ -796,24 +796,7 @@ os_alma_setsrc (char *option)
|
|||
|
||||
#include "recipe/os/alpine.c"
|
||||
#include "recipe/os/void.c"
|
||||
|
||||
|
||||
/**
|
||||
* 参考: https://help.mirrors.cernet.edu.cn/solus/
|
||||
*/
|
||||
void
|
||||
os_solus_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
SourceInfo source;
|
||||
chsrc_yield_source (os_solus);
|
||||
chsrc_confirm_source (&source);
|
||||
|
||||
char *cmd = xy_2strjoin ("eopkg add-repo Solus ", source.url);
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
chsrc_say_lastly (&source, ChsrcTypeAuto);
|
||||
}
|
||||
#include "recipe/os/solus.c"
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -51,7 +51,6 @@ def_target_noget(os_opensuse);
|
|||
def_target_noget(os_gentoo);
|
||||
def_target_noget(os_rocky);
|
||||
def_target_noget(os_alma);
|
||||
def_target_noget(os_solus);
|
||||
def_target_noget(os_freebsd);
|
||||
def_target_noget(os_openeuler);
|
||||
def_target_noget(os_anolis);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-24>
|
||||
* Last Modified : <2024-08-09>
|
||||
* Last Modified : <2024-08-16>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
|
|
40
src/recipe/os/solus.c
Normal file
40
src/recipe/os/solus.c
Normal file
|
@ -0,0 +1,40 @@
|
|||
/** ------------------------------------------------------------
|
||||
* 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-29>
|
||||
* Last Modified : <2024-08-16>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
* @time 2023-09-29 更新
|
||||
*/
|
||||
static SourceInfo
|
||||
os_solus_sources[] = {
|
||||
{&Upstream, NULL},
|
||||
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
|
||||
{&Bfsu, "https://mirrors.bfsu.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"},
|
||||
{&Nju, "https://mirror.nju.edu.cn/solus/packages/shannon/eopkg-index.xml.xz"}
|
||||
};
|
||||
def_sources_n(os_solus);
|
||||
|
||||
|
||||
/**
|
||||
* 参考: https://help.mirrors.cernet.edu.cn/solus/
|
||||
*/
|
||||
void
|
||||
os_solus_setsrc (char *option)
|
||||
{
|
||||
chsrc_ensure_root ();
|
||||
|
||||
SourceInfo source;
|
||||
chsrc_yield_source (os_solus);
|
||||
chsrc_confirm_source (&source);
|
||||
|
||||
char *cmd = xy_2strjoin ("eopkg add-repo Solus ", source.url);
|
||||
chsrc_run (cmd, RunOpt_Default);
|
||||
chsrc_say_lastly (&source, ChsrcTypeAuto);
|
||||
}
|
||||
|
||||
def_target_noget(os_solus);
|
|
@ -4,7 +4,7 @@
|
|||
* File Authors : Aoran Zeng <ccmywish@qq.com>
|
||||
* Contributors : Nil Null <nil@null.org>
|
||||
* Created On : <2023-09-24>
|
||||
* Last Modified : <2024-08-09>
|
||||
* Last Modified : <2024-08-16>
|
||||
* ------------------------------------------------------------*/
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user