mirror of
https://github.com/RubyMetric/chsrc
synced 2025-12-24 03:19:27 +08:00
Stick to standard --version
This commit is contained in:
@@ -70,7 +70,7 @@ ensure_apt_sourcelist (int debian_type)
|
||||
if (debian_type == OS_Is_Ubuntu)
|
||||
{
|
||||
makeup = xy_strjoin (9,
|
||||
"# Generated by chsrc " Chsrc_Version "\n\n"
|
||||
"# Generated by chsrc " Chsrc_Banner_Version "\n\n"
|
||||
"deb " Chsrc_Maintain_URL "/ubuntu ", codename, " main restricted universe multiverse\n"
|
||||
"deb " Chsrc_Maintain_URL "/ubuntu ", codename, "-updates main restricted universe multiverse\n"
|
||||
"deb " Chsrc_Maintain_URL "/ubuntu ", codename, "-backports main restricted universe multiverse\n"
|
||||
@@ -84,7 +84,7 @@ ensure_apt_sourcelist (int debian_type)
|
||||
// https://mirrors.tuna.tsinghua.edu.cn/help/debian/
|
||||
// 从 Debian 12 开始,开始有一项 non-free-firmware
|
||||
makeup = xy_strjoin (9,
|
||||
"# Generated by chsrc " Chsrc_Version "\n\n"
|
||||
"# Generated by chsrc " Chsrc_Banner_Version "\n\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, " main contrib non-free non-free-firmware\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, "-updates main contrib non-free non-free-firmware\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, "-backports main contrib non-free non-free-firmware\n"
|
||||
@@ -94,7 +94,7 @@ ensure_apt_sourcelist (int debian_type)
|
||||
else if (version >= 11)
|
||||
{
|
||||
makeup = xy_strjoin (9,
|
||||
"# Generated by chsrc " Chsrc_Version "(" Chsrc_Maintain_URL ")\n\n"
|
||||
"# Generated by chsrc " Chsrc_Banner_Version "(" Chsrc_Maintain_URL ")\n\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, " main contrib non-free\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, "-updates main contrib non-free\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, "-backports main contrib non-free\n"
|
||||
@@ -103,7 +103,7 @@ ensure_apt_sourcelist (int debian_type)
|
||||
else if (version >= 10)
|
||||
{
|
||||
makeup = xy_strjoin (9,
|
||||
"# Generated by chsrc " Chsrc_Version "(" Chsrc_Maintain_URL ")\n\n"
|
||||
"# Generated by chsrc " Chsrc_Banner_Version "(" Chsrc_Maintain_URL ")\n\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, " main contrib non-free\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, "-updates main contrib non-free\n"
|
||||
"deb " Chsrc_Maintain_URL "/debian ", codename, "-backports main contrib non-free\n"
|
||||
|
||||
@@ -47,7 +47,7 @@ wr_homebrew_setsrc (char *option)
|
||||
{
|
||||
chsrc_yield_source_and_confirm (wr_homebrew);
|
||||
|
||||
char *splitter = "\n\n# Generated by chsrc " Chsrc_Version;
|
||||
char *splitter = "\n\n# Generated by chsrc " Chsrc_Banner_Version;
|
||||
char *api_domain = xy_strjoin (3, "export HOMEBREW_API_DOMAIN=\"", xy_2strjoin (source.url, "homebrew-bottles/api"), "\"");
|
||||
char *bottle_domain = xy_strjoin (3, "export HOMEBREW_BOTTLE_DOMAIN=\"", xy_2strjoin (source.url, "homebrew-bottles"), "\"");
|
||||
char *brew_git_remote = xy_strjoin (3, "export HOMEBREW_BREW_GIT_REMOTE=\"", xy_2strjoin (source.url, "git/homebrew/brew.git"), "\"");
|
||||
|
||||
Reference in New Issue
Block a user