Skip to main content

repos_conf_section_is_disabled_with_apply_sources

Function repos_conf_section_is_disabled_with_apply_sources 

Source
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: Full repos.conf text.
  • section_name: Pacman [repo] name (case-insensitive trim).

Output:

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, but repos.conf still carries the recipe.

ยงErrors