Fix passing incorrect flags during yay -Sy[s,i]

This commit is contained in:
morganamilo 2018-02-17 23:00:18 +00:00
parent f612d89b49
commit 4298e77632
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E

3
cmd.go
View file

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