Split solus out

This commit is contained in:
Aoran Zeng 2024-08-16 00:56:39 +08:00
parent 03e4556718
commit fa96a44bab
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
6 changed files with 43 additions and 34 deletions

View File

@ -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);

View File

@ -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"

View File

@ -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);

View File

@ -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
View 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);

View File

@ -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>
* ------------------------------------------------------------*/
/**