From 74c76bb5cea8ff70153a8f9ebe02df6ffb0205f7 Mon Sep 17 00:00:00 2001 From: qvkap Date: Sat, 5 Sep 2026 08:29:46 +0300 Subject: fix: dependency resolution, update file removal and sync TLS validation --- src/apply.rs | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'src/apply.rs') diff --git a/src/apply.rs b/src/apply.rs index 423a8bc..dd5268d 100755 --- a/src/apply.rs +++ b/src/apply.rs @@ -163,16 +163,17 @@ pub fn apply_system(cfg: &Config, dry_run: bool, custom_config: Option<&Path>) - let installed_set: HashSet = db.packages.keys().cloned().collect(); let mut to_remove: Vec = installed_set.difference(&target_state).cloned().collect(); - if let Err(conflict_err) = resolver::check_conflicts(&required, &db) { - let msg = conflict_err.to_string(); - eprintln!("{} {}", "[ror]".yellow().bold(), msg); - if let Some(pkg_conflict) = msg.split("'").nth(3) { - let pkg = pkg_conflict.to_string(); - if !to_remove.contains(&pkg) { - to_remove.push(pkg); - } - } else { - return Err(conflict_err); + let installed_conflicts = resolver::find_installed_conflicts(&required, &db); + for (req_pkg, inst_pkg) in installed_conflicts { + eprintln!( + "{} Package '{}' conflicts with installed '{}'. Scheduling removal of '{}'.", + "[ror]".yellow().bold(), + req_pkg, + inst_pkg, + inst_pkg + ); + if !to_remove.contains(&inst_pkg) { + to_remove.push(inst_pkg); } } -- cgit v1.2.3