| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
cross-platform: fix all build warnings for macOS and Windows Problem: - Windows cross-compile had 18+ warnings about unused code - macOS cross-compile had warnings from our code - Some Unix-only code was not properly guarded Solution: - Add #[cfg(unix)] to Unix-only functions and imports: - scriptlets.rs: ScriptletType, run_scriptlet, etc. - busybox/mod.rs: format_list_columns, visible_width_ansi, etc. - download/aur.rs: AUR_DOMAIN constant - download/file_ops.rs: is_epkg_process() - remove.rs: unlink_package() - conda_link.rs: create_unix_python_entry_point() - Add #[allow(dead_code)] to Unix-only struct fields in plan.rs (InstallationPlan fields used by transaction/hooks/history) - Add #[allow(dead_code)] to version_compare.rs functions (compare, is_version_newer used by Unix-only list.rs) - Add mkfifo to UNIX_ONLY list in build.rs - Fix qemu.rs: resolve_vm_kernel_path() reference after code movement Result: - Linux: 0 warnings - macOS: 0 warnings (1 from external devices crate) - Windows: 0 warnings Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 4 个月前 | |
download: split validate_chunk_tasks() and create_chunk_tasks() helpers Extract next_chunk_boundary_after_resume() and split_remaining_into_chunk_sizes() from create_chunk_tasks() for clearer chunk-boundary and merge logic. Split validate_chunk_tasks() into focused helpers (header print, parent on-disk check, per-chunk checks, duplicate offsets, adjacency/parent range, file extent, chunk status) with no behavior change. Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 4 个月前 | |
download: rename FileType to Mutability for clarity Problem/Purpose: - Two distinct FileType enums exist in epkg codebase: - utils.rs: FileType for content format (ELF, MachO, scripts, etc.) - download/types.rs: FileType for file mutability behavior - Naming collision causes confusion when reading code Background: - utils.rs FileType is used for executable/content detection - download/types.rs FileType controls download/cache strategy: - Immutable: .deb, .rpm, .apk, by-hash files (cacheable) - Mutable: Release, repomd.xml, APKINDEX.tar.gz (need revalidation) - AppendOnly: future extension (partial download possible) Solution: - Rename download/types.rs FileType to Mutability - Rename field file_type to mutability - Rename function classify_file_type() to classify_mutability() Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
download: rename FileType to Mutability for clarity Problem/Purpose: - Two distinct FileType enums exist in epkg codebase: - utils.rs: FileType for content format (ELF, MachO, scripts, etc.) - download/types.rs: FileType for file mutability behavior - Naming collision causes confusion when reading code Background: - utils.rs FileType is used for executable/content detection - download/types.rs FileType controls download/cache strategy: - Immutable: .deb, .rpm, .apk, by-hash files (cacheable) - Mutable: Release, repomd.xml, APKINDEX.tar.gz (need revalidation) - AppendOnly: future extension (partial download possible) Solution: - Rename download/types.rs FileType to Mutability - Rename field file_type to mutability - Rename function classify_file_type() to classify_mutability() Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
download: show Downloaded -> Unpacking -> Unpacked status for packages Problem/Purpose: The download progress bar only showed "Downloaded" status, without indicating the subsequent unpack phase. Users want to see the full progress through download and unpack. Solution: - Add DownloadFlags::PACKAGE flag to identify package downloads - For PACKAGE downloads: keep progress bar alive after download ends - Show "Downloaded" at download completion - Show "Unpacking" before unpack starts - Show "Unpacked" after unpack completes - For non-PACKAGE downloads (repo metadata, wget): finish immediately with "Downloaded" status Changes: - types.rs: add PACKAGE flag - orchestration.rs: check PACKAGE flag to decide progress bar behavior - install.rs: pass URL through unpack flow, update status messages - manager.rs: add finish_download_task_message() public function Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
overhaul mirror discovery pipeline Scripts & Processing - Rename fetch_new_mirrors.py → fetch_official_mirrors.py - Replace new-mirrors.json → official-mirrors.json as primary source - Introduce blacklist-mirrors.txt for hostname-based blocking - Add intelligent cache management with should_update_cache() & atomic writes - Improve mirror grouping logic: enforce top_level vs. distro_dirs separation - Validate directory suffixes against VALID_DIRS (from sources/*.yaml) - Deduplicate base URLs; merge valid path components into distro_dirs - Add LFTP & JS fallback retry when filtering yields empty results - Remove --update flag; ls-mirrors.json now treated purely as output - Change merge step: drop root, unify ls/pdir/dir into single ls array - Compress final JSON: os→top (single value), dir/pdir/ls→ls, root→top Configuration (YAML) - New sources: debian-{kubernetes,mariadb,mysql,nginx,termux}, fedora-{mariadb,mysql}, msys2 - Rename: rocky-epel.yaml → epel.yaml (fake distro: EPEL) - Add uppercase variants to distro_dirs (e.g. Ubuntu, Rocky, EPEL) - Update Fedora paths: add /linux, /second, /altarch; deprecate generic fedora - Remove EOL CentOS 7/8 from centos.yaml - Expand openSUSE distro_dirs with ftp.opensuse.com & OpenSuSE Rust Application - Mirror struct: remove distros, probe_dirs, ls_dirs, top_level - Add top_os: Option<String> (single source-of-truth for root distro) - distro_dirs now holds all validated directories (merged from former ls/pdir/dir) - Update filtering logic: check top_os OR distro_dirs for distro match - Fedora secondary arch detection: also match altarch (not only secondary) - Adjust Mirrors::format_mirror_url call to use top_os.is_some() Documentation - Rewrite usage.md with clear step-by-step, cache policy, and debugging tips first - Update all mermaid diagrams to reflect renamed files and new schema Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 5 个月前 | |
download: show Downloaded -> Unpacking -> Unpacked status for packages Problem/Purpose: The download progress bar only showed "Downloaded" status, without indicating the subsequent unpack phase. Users want to see the full progress through download and unpack. Solution: - Add DownloadFlags::PACKAGE flag to identify package downloads - For PACKAGE downloads: keep progress bar alive after download ends - Show "Downloaded" at download completion - Show "Unpacking" before unpack starts - Show "Unpacked" after unpack completes - For non-PACKAGE downloads (repo metadata, wget): finish immediately with "Downloaded" status Changes: - types.rs: add PACKAGE flag - orchestration.rs: check PACKAGE flag to decide progress bar behavior - install.rs: pass URL through unpack flow, update status messages - manager.rs: add finish_download_task_message() public function Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
download: show Downloaded -> Unpacking -> Unpacked status for packages Problem/Purpose: The download progress bar only showed "Downloaded" status, without indicating the subsequent unpack phase. Users want to see the full progress through download and unpack. Solution: - Add DownloadFlags::PACKAGE flag to identify package downloads - For PACKAGE downloads: keep progress bar alive after download ends - Show "Downloaded" at download completion - Show "Unpacking" before unpack starts - Show "Unpacked" after unpack completes - For non-PACKAGE downloads (repo metadata, wget): finish immediately with "Downloaded" status Changes: - types.rs: add PACKAGE flag - orchestration.rs: check PACKAGE flag to decide progress bar behavior - install.rs: pass URL through unpack flow, update status messages - manager.rs: add finish_download_task_message() public function Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
download: split out others Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 6 个月前 | |
download: rename FileType to Mutability for clarity Problem/Purpose: - Two distinct FileType enums exist in epkg codebase: - utils.rs: FileType for content format (ELF, MachO, scripts, etc.) - download/types.rs: FileType for file mutability behavior - Naming collision causes confusion when reading code Background: - utils.rs FileType is used for executable/content detection - download/types.rs FileType controls download/cache strategy: - Immutable: .deb, .rpm, .apk, by-hash files (cacheable) - Mutable: Release, repomd.xml, APKINDEX.tar.gz (need revalidation) - AppendOnly: future extension (partial download possible) Solution: - Rename download/types.rs FileType to Mutability - Rename field file_type to mutability - Rename function classify_file_type() to classify_mutability() Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
download: show Downloaded -> Unpacking -> Unpacked status for packages Problem/Purpose: The download progress bar only showed "Downloaded" status, without indicating the subsequent unpack phase. Users want to see the full progress through download and unpack. Solution: - Add DownloadFlags::PACKAGE flag to identify package downloads - For PACKAGE downloads: keep progress bar alive after download ends - Show "Downloaded" at download completion - Show "Unpacking" before unpack starts - Show "Unpacked" after unpack completes - For non-PACKAGE downloads (repo metadata, wget): finish immediately with "Downloaded" status Changes: - types.rs: add PACKAGE flag - orchestration.rs: check PACKAGE flag to decide progress bar behavior - install.rs: pass URL through unpack flow, update status messages - manager.rs: add finish_download_task_message() public function Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 | |
download: split out others Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 6 个月前 | |
download: rename FileType to Mutability for clarity Problem/Purpose: - Two distinct FileType enums exist in epkg codebase: - utils.rs: FileType for content format (ELF, MachO, scripts, etc.) - download/types.rs: FileType for file mutability behavior - Naming collision causes confusion when reading code Background: - utils.rs FileType is used for executable/content detection - download/types.rs FileType controls download/cache strategy: - Immutable: .deb, .rpm, .apk, by-hash files (cacheable) - Mutable: Release, repomd.xml, APKINDEX.tar.gz (need revalidation) - AppendOnly: future extension (partial download possible) Solution: - Rename download/types.rs FileType to Mutability - Rename field file_type to mutability - Rename function classify_file_type() to classify_mutability() Signed-off-by: Wu Fengguang <wfg@mail.ustc.edu.cn> | 3 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 4 个月前 | ||
| 4 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 5 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 6 个月前 | ||
| 3 个月前 | ||
| 3 个月前 | ||
| 6 个月前 | ||
| 3 个月前 |