This commit is contained in:
Aoran Zeng 2024-09-26 19:51:55 +08:00
parent 411732edf6
commit 5b39a386d0
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
2 changed files with 15 additions and 15 deletions

View File

@ -5,8 +5,8 @@
* | Heng Guo <2085471348@qq.com> * | Heng Guo <2085471348@qq.com>
* Contributors : Shengwei Chen <414685209@qq.com> * Contributors : Shengwei Chen <414685209@qq.com>
* | * |
* Created on : <2023-08-29> * Created On : <2023-08-29>
* Last modified : <2024-09-14> * Last Modified : <2024-09-14>
* *
* *
* ------------------------------------------------------------*/ * ------------------------------------------------------------*/
@ -21,9 +21,9 @@ typedef struct MirrorSite_t {
// #define Big_File_ubuntu "/indices/md5sums.gz" 这个是错的 // #define Big_File_ubuntu "/indices/md5sums.gz" 这个是错的
#define Big_File_ctan "/systems/texlive/Images/texlive.iso" // 4.8GB #define Big_File_ctan "/systems/texlive/Images/texlive.iso" // 4.8GB
#define Big_File_debian "/ls-lR.gz" // 13.9 MB #define Big_File_debian "/ls-lR.gz" // 13.9MB
#define Big_File_archlinux "/iso/latest/archlinux-x86_64.iso" // 800MB 左右 #define Big_File_archlinux "/iso/latest/archlinux-x86_64.iso" // 800MB 左右
#define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4GB左右 #define Big_File_deepin "/20.9/deepin-desktop-community-20.9-amd64.iso" // 4GB 左右
/** /**

View File

@ -620,7 +620,7 @@ main (int argc, char const *argv[])
{ {
CliOpt_DryRun = true; CliOpt_DryRun = true;
} }
else if (xy_streql (argv[i], "-para") else if ( xy_streql (argv[i], "-para")
|| xy_streql (argv[i], "-parallel") || xy_streql (argv[i], "-parallel")
|| xy_streql (argv[i], "-paralel")) || xy_streql (argv[i], "-paralel"))
{ {
@ -631,13 +631,13 @@ main (int argc, char const *argv[])
CliOpt_NoColor = true; CliOpt_NoColor = true;
xy_enable_color = false; xy_enable_color = false;
} }
else if (xy_streql (argv[i], "-h") else if ( xy_streql (argv[i], "-h")
|| xy_streql (argv[i], "-help") || xy_streql (argv[i], "-help")
|| xy_streql (argv[i], "--help")) || xy_streql (argv[i], "--help"))
{ {
command = "help"; /* 交到下方处理 */ command = "help"; /* 交到下方处理 */
} }
else if (xy_streql (argv[i], "-v") else if ( xy_streql (argv[i], "-v")
|| xy_streql (command, "-version") || xy_streql (command, "-version")
|| xy_streql (command, "--version")) || xy_streql (command, "--version"))
{ {
@ -666,7 +666,7 @@ main (int argc, char const *argv[])
} }
/* chsrc help */ /* chsrc help */
if (xy_streql (command, "h") if ( xy_streql (command, "h")
|| xy_streql (command, "-h") || xy_streql (command, "-h")
|| xy_streql (command, "help") || xy_streql (command, "help")
|| xy_streql (command, "-help") || xy_streql (command, "-help")
@ -677,7 +677,7 @@ main (int argc, char const *argv[])
} }
/* chsrc -v */ /* chsrc -v */
else if (xy_streql (command, "-v") else if ( xy_streql (command, "-v")
|| xy_streql (command, "-version") || xy_streql (command, "-version")
|| xy_streql (command, "--version") || xy_streql (command, "--version")
|| xy_streql (command, "ver") || xy_streql (command, "ver")
@ -688,7 +688,7 @@ main (int argc, char const *argv[])
} }
/* chsrc list */ /* chsrc list */
else if (xy_streql (command, "list") else if ( xy_streql (command, "list")
|| xy_streql (command, "l") || xy_streql (command, "l")
|| xy_streql (command, "ls")) || xy_streql (command, "ls"))
{ {
@ -732,7 +732,7 @@ main (int argc, char const *argv[])
#define MSG_CN_USE_LIST_TARGETS "使用 chsrc list targets 查看所有支持的目标" #define MSG_CN_USE_LIST_TARGETS "使用 chsrc list targets 查看所有支持的目标"
/* chsrc measure */ /* chsrc measure */
else if (xy_streql (command, "measure") else if ( xy_streql (command, "measure")
|| xy_streql (command, "mea") || xy_streql (command, "mea")
|| xy_streql (command, "m") || xy_streql (command, "m")
|| xy_streql (command, "cesu") || xy_streql (command, "cesu")
@ -755,7 +755,7 @@ main (int argc, char const *argv[])
/* chsrc get */ /* chsrc get */
else if (xy_streql (command, "get") else if ( xy_streql (command, "get")
|| xy_streql (command, "g")) || xy_streql (command, "g"))
{ {
if (argc < cli_arg_Target_pos) if (argc < cli_arg_Target_pos)
@ -772,7 +772,7 @@ main (int argc, char const *argv[])
} }
/* chsrc set */ /* chsrc set */
else if (xy_streql (command, "set") else if ( xy_streql (command, "set")
|| xy_streql (command, "s")) || xy_streql (command, "s"))
{ {
if (argc < cli_arg_Target_pos) if (argc < cli_arg_Target_pos)
@ -796,7 +796,7 @@ main (int argc, char const *argv[])
} }
/* chsrc reset */ /* chsrc reset */
else if (xy_streql (command, "reset") else if ( xy_streql (command, "reset")
|| xy_streql (command, "rest") || xy_streql (command, "rest")
|| xy_streql (command, "r")) || xy_streql (command, "r"))
{ {
@ -816,7 +816,7 @@ main (int argc, char const *argv[])
} }
/* chsrc issue */ /* chsrc issue */
else if (xy_streql (command, "issue") else if ( xy_streql (command, "issue")
|| xy_streql (command, "issues") || xy_streql (command, "issues")
|| xy_streql (command, "isue") || xy_streql (command, "isue")
|| xy_streql (command, "i")) || xy_streql (command, "i"))