Merge pull request #157 from Morganamilo/fix#156

Fix passing incorrect flags during yay -Sy[s,i]
This commit is contained in:
J Guerreiro 2018-02-18 01:38:51 +00:00 committed by GitHub
commit 0f3ccbce93
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 {