Expand description
Third-party repository definitions (repos.conf) and results-filter wiring.
Phase 1 parses TOML (user-defined [[repo]] rows only) and exposes maps for crate::logic::distro::repo_toggle_for.
Shipped repo recipes (disabled by default) live in config/repos.conf in the Pacsea tree.
Phase 3 adds privileged apply via [apply_plan] and the Repositories modal (see events/modals/repositories.rs).
Structs§
- Foreign
Repo Overlap Analysis - What: Outcome of comparing foreign installs to a sync repository’s package names.
- Foreign
Repo Overlap Entry - What: One foreign package whose name exists in a sync database.
- Pacman
Conf Scan - What: Result of scanning
/etc/pacman.confand included files. - Repo
Apply Bundle - What: Human-readable summary lines plus shell commands for [
ExecutorRequest::Update]. - RepoRow
- What: One
[[repo]]row supplied by the user. - Repos
Conf File - What: Root document for
repos.conf(array of[[repo]]tables).
Enums§
- Pacman
Repo Presence - What: Presence of a pacman repository section after scanning config trees.
Constants§
- DEFAULT_
DROPIN_ PATH - What: Default absolute path for the managed drop-in.
- DEFAULT_
MAIN_ PACMAN_ PATH - What: Default path to the main pacman configuration.
- MANAGED_
DROPIN_ FILE - What: File name for the managed drop-in under
/etc/pacman.d/. - PACMAN_
MANAGED_ BEGIN - What: Start-of-block marker Pacsea appends to
/etc/pacman.conf. - PACMAN_
MANAGED_ END - What: End-of-block marker Pacsea appends to
/etc/pacman.conf.
Functions§
- analyze_
foreign_ repo_ overlap - What: Compare foreign installs to
pacman -Sl <repo>with counts for UI diagnostics. - analyze_
foreign_ repo_ overlap_ with_ qm_ snapshot - What: Compare foreign installs to
pacman -Sl <repo>, using an optional pre-applypacman -Qmsnapshot. - build_
dynamic_ visibility - What: Merge per-filter toggles from
settings.confwith defaults for all ids from repos. - build_
foreign_ to_ sync_ migrate_ bundle - What: Build privileged migrate commands: remove foreign packages then install from sync.
- build_
repo_ apply_ bundle - What: Build privileged commands to apply enabled
[[repo]]rows fromrepos.conf. - build_
repo_ key_ refresh_ bundle - What: Plan privileged
pacman-keyreceive + local sign for the selected repo row only. - build_
repo_ name_ to_ filter_ map - What: Build lowercase pacman repo name → canonical results-filter key.
- build_
repositories_ modal_ fields - What: Merge
repos.conf, pacman scan, and optional keyring snapshot into modal rows. - build_
repositories_ modal_ fields_ default - What: Convenience wrapper using resolved Pacsea paths and system
pacman.conf. - canonical_
results_ filter_ key - What: Normalize a
results_filterlabel for map keys andsettings.confsuffixes. - compute_
foreign_ repo_ overlap - What: Foreign packages installed whose
pkgnameexists inrepo’s sync DB. - disable_
repo_ section_ in_ repos_ conf_ if_ enabled - What: Persist
enabled = falsefor a[[repo]]row only while it is currently enabled. - list_
foreign_ packages - What: Run
pacman -Qmand parse foreign package names and versions. - load_
repo_ name_ map_ from_ path - What: Load and resolve
repos.conffrom disk for app initialization. - load_
repos_ config_ into_ app - What: Populate
repo_results_filter_by_namefrom the resolved config path, if any. - load_
resolve_ repos_ from_ str - What: Parse TOML, validate rows, and build the repo-name map.
- persist_
dynamic_ filter_ toggle_ and_ refresh - What: Update one dynamic results filter, persist
settings.conf, and re-run filtering. - persist_
dynamic_ filters_ set_ all - What: Turn every dynamic repo filter on or off together, persist, and re-filter.
- read_
main_ pacman_ conf_ text - What: Read main
pacman.conffor planning (production convenience). - refresh_
dynamic_ filters_ in_ app - What: Recompute
results_filter_dynamicfrom settings toggles and repo map. - repo_
row_ declares_ apply_ sources - What: Whether a
[[repo]]row declares sources that participate in Apply (drop-in generation). - repos_
conf_ repo_ names_ for_ index_ sl - What: Resolve
repos.confand list repo names that need an extrapacman -Slfor the package index. - repos_
conf_ section_ is_ disabled_ with_ apply_ sources - What: Whether
repos.confhas a matching[[repo]]that is disabled but still defines apply sources. - repositories_
linux_ actions_ supported - What: Whether Arch-style repository tooling (pacman paths, privileged apply) is available.
- row_
is_ enabled_ for_ repos_ conf - What: Whether a
[[repo]]row is treated as enabled for index and apply planning. - save_
repos_ conf_ file - What: Serialize a resolved
repos.confdocument to disk (overwrites the file). - scan_
pacman_ conf_ path - What: Scan the system pacman configuration for repository section headers.
- sync_
repo_ pkgnames - What: Collect
pkgnamevalues frompacman -Sl <repo>. - toggle_
repo_ enabled_ for_ section_ in_ file - What: Toggle
enabledfor the[[repo]]whosenamematchessection_nameand save the file.