pub fn repos_conf_section_is_disabled_with_apply_sources(
content: &str,
section_name: &str,
) -> Result<bool, String>Expand description
What: Whether repos.conf has a matching [[repo]] that is disabled but still defines apply sources.
Inputs:
content: Fullrepos.conftext.section_name: Pacman[repo]name (case-insensitive trim).
Output:
Ok(true)when a row matches, hasenabled = false, andrepo_row_declares_apply_sources.Ok(false)when no such row exists.
Details:
- Used so the Repositories modal can re-enable a row after Apply removed it from pacman: pacman
no longer shows the section as active from
pacsea-repos.conf, butrepos.confstill carries the recipe.
ยงErrors
- Propagates
load_resolve_repos_from_strfailures.