From 8865263a746ce5fa8b4446f924c9c8c7c2ff7800 Mon Sep 17 00:00:00 2001 From: Toni500git Date: Wed, 1 May 2024 16:44:03 +0200 Subject: [PATCH] fix -Ss --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 317f5d9..d114a9a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -265,6 +265,9 @@ int installPkg(alpm_list_t *pkgNames) { } } + if (op.op_s_search) // we already searched the package and printed the infos + return returnStatus; + log_println(DEBUG, "Installing {}", fmt::join(pkgNamesVec, " ")); pkgs_to_install.erase(pkgs_to_install.length()-1); if (!pacman_exec("-U", split(pkgs_to_install, ' '), false)) {