Skip to content

Commit f8cf0e9

Browse files
committed
Remove the line split for makeup
[GitHub link #23]
1 parent 1d8333c commit f8cf0e9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/chsrc.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -857,17 +857,19 @@ makeup_etc_apt_sourcelist ()
857857

858858
if (exist)
859859
{
860-
chsrc_infolog_remarkably (ETC_APT_SOURCELIST "存在");
860+
chsrc_infolog_remarkably (ETC_APT_SOURCELIST " 存在");
861861
return;
862862
}
863863
else
864864
{
865-
chsrc_error_remarkably (ETC_APT_SOURCELIST "缺失,将替补")
865+
chsrc_warn_remarkably (ETC_APT_SOURCELIST " 文件缺失,将替补")
866866
}
867867

868868
char *codename = xy_run ("sed -nr 's/VERSION_CODENAME=(.*)/\1/p' " ETC_OSRELEASE, 0, NULL);
869+
codename = xy_str_delete_suffix (codename, "\n");
869870

870871
char *makeup = xy_strjoin (9,
872+
"# Generated by " Chsrc_Version "\n"
871873
"deb " Chsrc_Maintain_URL, codename, " main restricted universe multiverse\n"
872874
"deb " Chsrc_Maintain_URL, codename, "-updates main restricted universe multiverse\n"
873875
"deb " Chsrc_Maintain_URL, codename, "-backports main restricted universe multiverse\n"

0 commit comments

Comments
 (0)