diff --git a/src/install.rs b/src/install.rs index 226f6657..867beb6a 100644 --- a/src/install.rs +++ b/src/install.rs @@ -1076,7 +1076,7 @@ impl Installer { bail!(tr!("--downloadonly can't be used for AUR packages")); } - let conflicts = check_actions(config, actions)?; + let conflicts = check_actions(config, actions, !config.chroot || self.install_targets)?; let c = config.color; print_warnings(config, cache, Some(actions)); @@ -1334,7 +1334,11 @@ fn fmt_stack(want: &DepMissing) -> String { } } -fn check_actions(config: &Config, actions: &mut Actions) -> Result<(Vec, Vec)> { +fn check_actions( + config: &Config, + actions: &mut Actions, + check_conflicts: bool, +) -> Result<(Vec, Vec)> { let c = config.color; let dups = actions.duplicate_targets(); ensure!( @@ -1377,16 +1381,16 @@ fn check_actions(config: &Config, actions: &mut Actions) -> Result<(Vec