File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments