1
0
mirror of https://github.com/Jguer/yay.git synced 2025-08-08 23:57:11 +02:00

Merge pull request #409 from Morganamilo/ignore2

Fix --ignore flag while skipping updates
This commit is contained in:
Anna 2018-05-12 00:20:48 +01:00 committed by GitHub
commit 58d53b1f8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -114,7 +114,13 @@ func install(parser *arguments) error {
requestTargets = append(requestTargets, up) requestTargets = append(requestTargets, up)
} }
arguments.addParam("ignore", strings.Join(ignore.toSlice(), ",")) value, _, exists := cmdArgs.getArg("ignore")
ignoreStr := strings.Join(ignore.toSlice(), ",")
if exists {
ignoreStr += "," + value
}
arguments.options["ignore"] = ignoreStr
fmt.Println() fmt.Println()
for pkg := range aurUp { for pkg := range aurUp {