This commit is contained in:
Super Manito
2025-07-24 02:50:52 +08:00
parent dd50f5a14d
commit 53afbdd1ed

View File

@@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
## Author: SuperManito ## Author: SuperManito
## Modified: 2025-07-18 ## Modified: 2025-07-24
## License: MIT ## License: MIT
## GitHub: https://github.com/SuperManito/LinuxMirrors ## GitHub: https://github.com/SuperManito/LinuxMirrors
## Website: https://linuxmirrors.cn ## Website: https://linuxmirrors.cn
@@ -1945,22 +1945,24 @@ function change_mirrors_Debian() {
echo "deb ${WEB_PROTOCOL}://${1}/ ${2} ${3}" echo "deb ${WEB_PROTOCOL}://${1}/ ${2} ${3}"
} }
function gen_deb_disabled_source() { function gen_deb_disabled_source() {
echo "# deb ${WEB_PROTOCOL}://${1}/ ${2} ${3} echo "$(gen_deb_source "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
# # deb-src ${WEB_PROTOCOL}://${1}/ ${2} ${3}"
} }
function gen_deb822_source() { function gen_deb822_source_template() {
echo "Types: deb echo "Types: ${1}
URIs: ${WEB_PROTOCOL}://${1}/ URIs: ${WEB_PROTOCOL}://${2}/
Suites: ${2} Suites: ${3}
Components: ${3} Components: ${4}
Signed-By: /usr/share/keyrings/${SYSTEM_JUDGMENT,,}-archive-keyring.gpg" Signed-By: /usr/share/keyrings/${SYSTEM_JUDGMENT,,}-archive-keyring.gpg"
}
function gen_deb822_source() {
echo "$(gen_deb822_source_template "deb" "${1}" "${2}" "${3}")
$(gen_deb822_source_template "deb-src" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")"
} }
function gen_deb822_disabled_source() { function gen_deb822_disabled_source() {
echo "# Types: deb echo "$(gen_deb822_source_template "deb" "${1}" "${2}" "${3}" | sed -e "s|^|# |g")
# URIs: ${WEB_PROTOCOL}://${1}/
# Suites: ${2} $(gen_deb822_source_template "deb-src" "${1}" "${2}" "${3}" | sed -e "s|^|# |g; s|^|# |g")"
# Components: ${3}
# Signed-By: /usr/share/keyrings/${SYSTEM_JUDGMENT,,}-archive-keyring.gpg"
} }
function gen_deb_source_security() { function gen_deb_source_security() {
echo "## 安全更新软件源 echo "## 安全更新软件源