Skip to content

Commit

Permalink
Ignore aur when p/print is passed
Browse files Browse the repository at this point in the history
Fixes #148
  • Loading branch information
Morganamilo committed Jan 17, 2021
1 parent 3657863 commit 76433ff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ async fn handle_sync(config: &mut Config) -> Result<i32> {
search::search(config).await
} else if config.args.has_arg("g", "groups") {
Ok(exec::pacman(config, &config.args)?.code())
} else if config.args.has_arg("p", "print") || config.args.has_arg("p", "print-format") {
Ok(exec::pacman(config, &config.args)?.code())
} else {
let target = std::mem::take(&mut config.targets);
install::install(config, &target).await
Expand Down

0 comments on commit 76433ff

Please sign in to comment.