Fix --ignore flag while skipping updates

If --ignore was specified on the command line and the user skips
packages using the number menu, packages would not be properly skipped
because they the manual --ignore would overide the --ignore from the
menu.

Now correctly combine both --ignore flags into a single combined flag
when passing to pacman.
This commit is contained in:
morganamilo 2018-05-12 00:12:33 +01:00
parent 686d6a3188
commit 2bf310d37c
No known key found for this signature in database
GPG Key ID: 6FE9E7996B0B082E

View File

@ -114,7 +114,13 @@ func install(parser *arguments) error {
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()
for pkg := range aurUp {