pub fn build_force_sync_update_command(
helper: Option<AurHelper>,
noconfirm: bool,
) -> CommandSpecExpand description
What: Build a full-system update command that force-refreshes sync databases.
Inputs:
helper: WhenSome, use the AUR helper; whenNone, plain pacman.noconfirm: Pass--noconfirmfor non-interactive updates.
Output:
CommandSpeclikepacman -Syyu --noconfirm.
Details:
-Syyure-downloads all sync databases even when they appear up to date; use after mirror changes (mirrors Pacsea’s force-sync update option).- Same privilege rules as
build_update_command.
§Example
use arch_toolkit::install::build_force_sync_update_command;
let spec = build_force_sync_update_command(None, true);
assert_eq!(spec.to_shell_string(), "pacman -Syyu --noconfirm");