mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01:00
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:
parent
686d6a3188
commit
2bf310d37c
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user