diff --git a/src/main.rs b/src/main.rs index 0a29bbe..9c11385 100644 --- a/src/main.rs +++ b/src/main.rs @@ -117,16 +117,16 @@ async fn cmd_search(args: SearchArgs, options: Options) { let aur = args.aur || both; let repo = args.repo || both; - if aur { - tracing::info!("Searching AUR for {}", &query_string); - let res = operations::aur_search(&query_string, args.by, options).await; - results.extend(res); - } if repo { tracing::info!("Searching repos for {}", &query_string); let res = operations::search(&query_string, options).await; results.extend(res); } + if aur { + tracing::info!("Searching AUR for {}", &query_string); + let res = operations::aur_search(&query_string, args.by, options).await; + results.extend(res); + } if results.is_empty() { tracing::info!("No results found");