pub fn build_foreign_to_sync_migrate_bundle(
tool: PrivilegeTool,
dry_run: bool,
pkgs: &[String],
) -> Result<(Vec<String>, Vec<String>), String>Expand description
What: Build privileged migrate commands: remove foreign packages then install from sync.
Inputs:
tool: Active privilege backend.dry_run: Whentrue, emitecho DRY RUN: ...only.pkgs: Package names to remove and reinstall (samepkgname).
Output:
(summary_lines, commands)forcrate::install::ExecutorRequest::Update.
Details:
- Single transaction chain
pacman -Rnsthenpacman -Sfor all names. -Rnsmay remove dependents; UI must warn users before calling.
ยงErrors
- Returns an error when
pkgsis empty or privilege command construction fails.