Skip to content

Commit

Permalink
Fix provider menu from showing on interactive install
Browse files Browse the repository at this point in the history
  • Loading branch information
Morganamilo committed Nov 15, 2024
1 parent 688d26f commit 6af6674
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/resolver.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::config::{Alpm, Config, LocalRepos, Op, YesNoAll, YesNoAllTree};
use crate::config::{Alpm, Config, LocalRepos, YesNoAll, YesNoAllTree};
use crate::fmt::color_repo;
use crate::util::{get_provider, NumberMenu};
use crate::RaurHandle;
Expand Down Expand Up @@ -48,7 +48,7 @@ pub fn flags(config: &mut Config) -> aur_depends::Flags {
),
YesNoAll::All => flags |= Flags::PROVIDES,
}
if config.op == Op::Default {
if config.interactive {
flags.remove(Flags::TARGET_PROVIDES);
}
if config.repos != LocalRepos::None || config.rebuild == YesNoAllTree::Tree || config.chroot {
Expand Down

0 comments on commit 6af6674

Please sign in to comment.