From 4298e776325480d03b3fd9970e9f7c2a9e8277ac Mon Sep 17 00:00:00 2001 From: morganamilo Date: Sat, 17 Feb 2018 23:00:18 +0000 Subject: [PATCH] Fix passing incorrect flags during yay -Sy[s,i] --- cmd.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd.go b/cmd.go index eb7abe31..7642a772 100644 --- a/cmd.go +++ b/cmd.go @@ -472,7 +472,10 @@ func handleSync() (err error) { if cmdArgs.existsArg("y", "refresh") { arguments := cmdArgs.copy() + cmdArgs.delArg("y", "refresh") arguments.delArg("u", "sysupgrade") + arguments.delArg("s", "search") + arguments.delArg("i", "info") arguments.targets = make(stringSet) err = passToPacman(arguments) if err != nil {