mirror of
https://github.com/Jguer/yay
synced 2024-10-31 04:12:51 +00:00
Merge pull request #409 from Morganamilo/ignore2
Fix --ignore flag while skipping updates
This commit is contained in:
commit
58d53b1f8b
1 changed files with 7 additions and 1 deletions
|
@ -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 a new issue