mirror of
https://github.com/Jguer/yay.git
synced 2025-08-16 11:37:11 +02:00
Merge pull request #410 from Morganamilo/ignore2
Fix --ignore flag while skipping updates ammended
This commit is contained in:
commit
4143aaf6fd
11
install.go
11
install.go
@ -115,12 +115,15 @@ func install(parser *arguments) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
value, _, exists := cmdArgs.getArg("ignore")
|
value, _, exists := cmdArgs.getArg("ignore")
|
||||||
ignoreStr := strings.Join(ignore.toSlice(), ",")
|
|
||||||
if exists {
|
if len(ignore) > 0 {
|
||||||
ignoreStr += "," + value
|
ignoreStr := strings.Join(ignore.toSlice(), ",")
|
||||||
|
if exists {
|
||||||
|
ignoreStr += "," + value
|
||||||
|
}
|
||||||
|
arguments.options["ignore"] = ignoreStr
|
||||||
}
|
}
|
||||||
|
|
||||||
arguments.options["ignore"] = ignoreStr
|
|
||||||
fmt.Println()
|
fmt.Println()
|
||||||
|
|
||||||
for pkg := range aurUp {
|
for pkg := range aurUp {
|
||||||
|
Loading…
Reference in New Issue
Block a user