Format in small and add copyright

This commit is contained in:
Aoran Zeng 2024-07-31 12:38:52 +08:00
parent 61690ba5a5
commit 8f5423f704
No known key found for this signature in database
GPG Key ID: 8F8BA8488E10ED98
4 changed files with 31 additions and 24 deletions

View File

@ -1,5 +1,6 @@
/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
* -------------------------------------------------------------
* File : chsrc.h
* Authors : Aoran Zeng <ccmywish@qq.com>
@ -254,7 +255,8 @@ test_speed_url (const char *url)
char *ipv6 = ""; // 默认不启用
if (Cli_Option_IPv6==true) {
if (Cli_Option_IPv6==true)
{
ipv6 = "--ipv6";
}

View File

@ -1,5 +1,6 @@
/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
* -------------------------------------------------------------
* File : source.h
* Authors : Aoran Zeng <ccmywish@qq.com>

View File

@ -1,5 +1,6 @@
/** ------------------------------------------------------------
* SPDX-License-Identifier: MIT
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
* -------------------------------------------------------------
* File : xy.h
* Authors : Aoran Zeng <ccmywish@qq.com>

View File

@ -1,5 +1,6 @@
/** ------------------------------------------------------------
* SPDX-License-Identifier: GPL-3.0-or-later
* Copyright © 2023-2024 Aoran Zeng, Heng Guo
* -------------------------------------------------------------
* File : chsrc.c
* Authors : Aoran Zeng <ccmywish@qq.com>
@ -10,7 +11,7 @@
* | BlockLune <blocklune@gmail.com>
* |
* Created on : <2023-08-28>
* Last modified : <2024-07-29>
* Last modified : <2024-07-31>
*
* chsrc: Change Source
* ------------------------------------------------------------*/
@ -134,7 +135,8 @@ pl_python_getsrc (char *option)
char *cmd = xy_2strjoin (prog, " -m pip config get global.index-url");
chsrc_run (cmd, RunOpt_Default);
if (pdm_exist) {
if (pdm_exist)
{
cmd = "pdm config --global pypi.url";
chsrc_run (cmd, RunOpt_Default);
}
@ -2908,7 +2910,8 @@ main (int argc, char const *argv[])
target = argv[cli_arg_Target_pos];
char *mirrorCode_or_url = NULL;
if (argc >= cli_arg_Mirror_pos) {
if (argc >= cli_arg_Mirror_pos)
{
mirrorCode_or_url = xy_strdup (argv[cli_arg_Mirror_pos]);
}