From e2789d200b4587f79f51234f28ed276ac2e2ab52 Mon Sep 17 00:00:00 2001 From: Bryan Joshua Pedini Date: Mon, 10 Jun 2024 06:52:56 +0200 Subject: [PATCH] updated cache before "provides" listings --- pman.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pman.sh b/pman.sh index aaa01a2..834babc 100755 --- a/pman.sh +++ b/pman.sh @@ -48,6 +48,12 @@ fi if [ "$command_args" = "search" ]; then command_args="-Ss" elif [ "$command_args" = "provides" ]; then + # Update the cache + su_needed=true + command_args="-Fy" + execute_command "${@}" + + su_needed=false command_args="-F" elif [ "$command_args" = "installed" ]; then command_args="-Q"