From 459c1cf3cd75622fd24ed58d714e03cc7537ab73 Mon Sep 17 00:00:00 2001 From: Aoran Zeng Date: Fri, 11 Jul 2025 16:46:32 +0800 Subject: [PATCH] Add provider measure info --- src/recipe/lang/Dart/Flutter.c | 2 +- src/recipe/lang/Dart/Pub.c | 2 +- src/recipe/lang/Node.js/common.h | 2 +- src/recipe/lang/Python/Python.c | 8 ++++---- src/recipe/lang/Python/common.h | 2 +- src/recipe/os/APT/Debian.c | 2 +- src/recipe/os/APT/Kali-Linux.c | 2 +- src/recipe/os/APT/Linux-Lite.c | 2 +- src/recipe/os/APT/Ubuntu.c | 2 +- src/recipe/os/Alpine-Linux.c | 2 +- src/recipe/os/OpenWrt.c | 2 +- src/recipe/os/Void-Linux.c | 2 +- src/recipe/os/YUM/AlmaLinux.c | 2 +- src/recipe/os/YUM/openEuler.c | 2 +- src/recipe/ware/Flathub.c | 2 +- 15 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/recipe/lang/Dart/Flutter.c b/src/recipe/lang/Dart/Flutter.c index 7a34246..2b99210 100644 --- a/src/recipe/lang/Dart/Flutter.c +++ b/src/recipe/lang/Dart/Flutter.c @@ -19,7 +19,7 @@ static SourceProvider_t pl_dart_flutter_upstream = { def_upstream, "https://storage.googleapis.com", - {NotSkip, NA, NA, "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz"} // 231 MB + {NotSkip, NA, NA, "https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_v1.0.0-stable.tar.xz", ACCURATE} // 231 MB }; static Source_t pl_dart_flutter_sources[] = diff --git a/src/recipe/lang/Dart/Pub.c b/src/recipe/lang/Dart/Pub.c index 96024d5..20984fe 100644 --- a/src/recipe/lang/Dart/Pub.c +++ b/src/recipe/lang/Dart/Pub.c @@ -18,7 +18,7 @@ static SourceProvider_t pl_dart_upstream = { def_upstream, "https://pub.dev", - {NotSkip, NA, NA, "https://pub.dev/packages/flutter_vision/versions/1.1.4.tar.gz"} // 37.05 MB + {NotSkip, NA, NA, "https://pub.dev/packages/flutter_vision/versions/1.1.4.tar.gz", ACCURATE} // 37.05 MB }; static Source_t pl_dart_sources[] = diff --git a/src/recipe/lang/Node.js/common.h b/src/recipe/lang/Node.js/common.h index 486c4b5..80c60d8 100644 --- a/src/recipe/lang/Node.js/common.h +++ b/src/recipe/lang/Node.js/common.h @@ -47,7 +47,7 @@ def_sources_n(pl_nodejs_group); static SourceProvider_t pl_nodejs_binary_release_upstream = { def_upstream, "https://nodejs.org/", - {NotSkip, NA, NA, "https://nodejs.org/dist/v23.4.0/node-v23.4.0.tar.gz"} // 100MB + {NotSkip, NA, NA, "https://nodejs.org/dist/v23.4.0/node-v23.4.0.tar.gz", ACCURATE} // 100MB }; /** diff --git a/src/recipe/lang/Python/Python.c b/src/recipe/lang/Python/Python.c index efc0201..91fcefe 100644 --- a/src/recipe/lang/Python/Python.c +++ b/src/recipe/lang/Python/Python.c @@ -44,10 +44,10 @@ void pl_python_setsrc (char *option) { { - char *msg = ENGLISH ? "Three package managers will be replaced for you at the same time: " \ - "pip, Poetry, PDM. If you need to change the source independently, " \ - "please run independently `chsrc set `" - : "将同时为您更换4个包管理器 pip, Poetry, PDM, uv 的源,若需要独立换源,请独立运行 chsrc set "; + char *msg = ENGLISH ? "Three package managers will be replaced for you at the same time: " + "pip, Poetry, PDM. If you need to change the source independently, " + "please run independently `chsrc set `" + : "将同时为您更换4个包管理器 pip, Poetry, PDM, uv 的源,若需要独立换源,请独立运行 chsrc set "; chsrc_note2 (msg); } diff --git a/src/recipe/lang/Python/common.h b/src/recipe/lang/Python/common.h index 8d97d63..496ac19 100644 --- a/src/recipe/lang/Python/common.h +++ b/src/recipe/lang/Python/common.h @@ -13,7 +13,7 @@ static SourceProvider_t pl_python_pypi_upstream = { def_upstream, "https://pypi.org/", - {NotSkip, NA, NA, "https://files.pythonhosted.org/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl"} // 260MB + {NotSkip, NA, NA, "https://files.pythonhosted.org/packages/56/e4/55aaac2b15af4dad079e5af329a79d961e5206589d0e02b1e8da221472ed/tensorflow-2.18.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", ACCURATE} // 260MB }; /** diff --git a/src/recipe/os/APT/Debian.c b/src/recipe/os/APT/Debian.c index 9ee1d23..dc933dc 100644 --- a/src/recipe/os/APT/Debian.c +++ b/src/recipe/os/APT/Debian.c @@ -14,7 +14,7 @@ static SourceProvider_t os_debian_upstream = { def_upstream, "https://ftp.debian.org/debian/", - {NotSkip, NA, NA, "https://ftp.debian.org/debian/dists/bookworm/main/Contents-all.gz"} // 32MB + {NotSkip, NA, NA, "https://ftp.debian.org/debian/dists/bookworm/main/Contents-all.gz", ACCURATE} // 32MB }; diff --git a/src/recipe/os/APT/Kali-Linux.c b/src/recipe/os/APT/Kali-Linux.c index 140421f..bfdeebe 100644 --- a/src/recipe/os/APT/Kali-Linux.c +++ b/src/recipe/os/APT/Kali-Linux.c @@ -15,7 +15,7 @@ static SourceProvider_t os_kali_upstream = { def_upstream, "http://http.kali.org/kali", // https://github.com/RubyMetric/chsrc/issues/121 - {NotSkip, NA, NA, "https://http.kali.org/kali/dists/kali-dev/Contents-amd64.gz"} // 47MB + {NotSkip, NA, NA, "https://http.kali.org/kali/dists/kali-dev/Contents-amd64.gz", ACCURATE} // 47MB }; /** diff --git a/src/recipe/os/APT/Linux-Lite.c b/src/recipe/os/APT/Linux-Lite.c index 25855e8..e33a648 100644 --- a/src/recipe/os/APT/Linux-Lite.c +++ b/src/recipe/os/APT/Linux-Lite.c @@ -11,7 +11,7 @@ static SourceProvider_t os_linuxlite_upstream = { def_upstream, "http://repo.linuxliteos.com/linuxlite/", - {NotSkip, NA, NA, "http://repo.linuxliteos.com/linuxlite/isos/7.2/linux-lite-7.2-64bit.iso"} // 2.9GB + {NotSkip, NA, NA, "http://repo.linuxliteos.com/linuxlite/isos/7.2/linux-lite-7.2-64bit.iso", ACCURATE} // 2.9GB }; /** diff --git a/src/recipe/os/APT/Ubuntu.c b/src/recipe/os/APT/Ubuntu.c index cc908ba..e70110a 100644 --- a/src/recipe/os/APT/Ubuntu.c +++ b/src/recipe/os/APT/Ubuntu.c @@ -13,7 +13,7 @@ static SourceProvider_t os_ubuntu_upstream = { def_upstream, "http://archive.ubuntu.com/", // https://github.com/RubyMetric/chsrc/issues/121 - {NotSkip, NA, NA, "http://archive.ubuntu.com/ubuntu/dists/noble/Contents-amd64.gz"} + {NotSkip, NA, NA, "http://archive.ubuntu.com/ubuntu/dists/noble/Contents-amd64.gz", ACCURATE} }; /** diff --git a/src/recipe/os/Alpine-Linux.c b/src/recipe/os/Alpine-Linux.c index 7e78c8e..28d5db3 100644 --- a/src/recipe/os/Alpine-Linux.c +++ b/src/recipe/os/Alpine-Linux.c @@ -11,7 +11,7 @@ static SourceProvider_t os_alpine_upstream = { def_upstream, "http://dl-cdn.alpinelinux.org/alpine", - {NotSkip, NA, NA, "https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-standard-3.21.0-x86_64.iso"} + {NotSkip, NA, NA, "https://dl-cdn.alpinelinux.org/alpine/latest-stable/releases/x86_64/alpine-standard-3.21.0-x86_64.iso", ACCURATE} }; diff --git a/src/recipe/os/OpenWrt.c b/src/recipe/os/OpenWrt.c index ac6e893..8f141c5 100644 --- a/src/recipe/os/OpenWrt.c +++ b/src/recipe/os/OpenWrt.c @@ -12,7 +12,7 @@ static SourceProvider_t os_openwrt_upstream = { def_upstream, "https://downloads.openwrt.org", - {NotSkip, NA, NA, "https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz"} + {NotSkip, NA, NA, "https://downloads.openwrt.org/releases/23.05.5/targets/x86/64/openwrt-sdk-23.05.5-x86-64_gcc-12.3.0_musl.Linux-x86_64.tar.xz", ACCURATE} }; /** diff --git a/src/recipe/os/Void-Linux.c b/src/recipe/os/Void-Linux.c index 1482942..c79ed06 100644 --- a/src/recipe/os/Void-Linux.c +++ b/src/recipe/os/Void-Linux.c @@ -11,7 +11,7 @@ static SourceProvider_t os_voidlinux_upstream = { def_upstream, "https://repo-default.voidlinux.org", - {NotSkip, NA, NA, "https://repo-default.voidlinux.org/live/20240314/void-live-x86_64-musl-20240314-xfce.iso"} + {NotSkip, NA, NA, "https://repo-default.voidlinux.org/live/20240314/void-live-x86_64-musl-20240314-xfce.iso", ACCURATE} }; /** diff --git a/src/recipe/os/YUM/AlmaLinux.c b/src/recipe/os/YUM/AlmaLinux.c index 37d49b0..2eaa346 100644 --- a/src/recipe/os/YUM/AlmaLinux.c +++ b/src/recipe/os/YUM/AlmaLinux.c @@ -11,7 +11,7 @@ static SourceProvider_t os_almalinux_upstream = { def_upstream, "http://repo.almalinux.org/almalinux", - {NotSkip, NA, NA, "https://raw.repo.almalinux.org/almalinux/9.5/isos/x86_64/AlmaLinux-9-latest-x86_64-minimal.iso"} + {NotSkip, NA, NA, "https://raw.repo.almalinux.org/almalinux/9.5/isos/x86_64/AlmaLinux-9-latest-x86_64-minimal.iso", ACCURATE} }; /** diff --git a/src/recipe/os/YUM/openEuler.c b/src/recipe/os/YUM/openEuler.c index f6e6275..15fad9f 100644 --- a/src/recipe/os/YUM/openEuler.c +++ b/src/recipe/os/YUM/openEuler.c @@ -13,7 +13,7 @@ static SourceProvider_t os_openEuler_upstream = { def_upstream, "https://repo.openeuler.org/", - {NotSkip, NA, NA, "https://repo.openeuler.org/openEuler-24.03-LTS/ISO/x86_64/openEuler-24.03-LTS-netinst-x86_64-dvd.iso"} // 896MB + {NotSkip, NA, NA, "https://repo.openeuler.org/openEuler-24.03-LTS/ISO/x86_64/openEuler-24.03-LTS-netinst-x86_64-dvd.iso", ACCURATE} // 896MB }; diff --git a/src/recipe/ware/Flathub.c b/src/recipe/ware/Flathub.c index 507f013..b5c265d 100644 --- a/src/recipe/ware/Flathub.c +++ b/src/recipe/ware/Flathub.c @@ -14,7 +14,7 @@ static SourceProvider_t wr_flathub_upstream = { def_upstream, "https://flathub.org/repo", - {NotSkip, NA, NA, "https://flathub.org/repo/flathub.gpg"} + {NotSkip, NA, NA, "https://flathub.org/repo/flathub.gpg", ROUGH} }, /**