updated cache before "provides" listings

This commit is contained in:
Bryan Joshua Pedini 2024-06-10 06:52:56 +02:00
parent eddbe307c2
commit e2789d200b

View File

@ -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"