mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01:00
Satisfied linter
This commit is contained in:
parent
b18724ac7e
commit
4abddaab66
@ -211,7 +211,7 @@ func upAUR(remote []alpm.Package, remoteNames []string) (toUpgrade upSlice, err
|
|||||||
fmt.Printf("\x1b[33mwarning:\x1b[0m %s ignoring package upgrade (%s => %s)\n", local[i].Name(), local[i].Version(), qtemp[x].Version)
|
fmt.Printf("\x1b[33mwarning:\x1b[0m %s ignoring package upgrade (%s => %s)\n", local[i].Name(), local[i].Version(), qtemp[x].Version)
|
||||||
} else {
|
} else {
|
||||||
packageC <- upgrade{qtemp[x].Name, "aur", local[i].Version(), qtemp[x].Version}
|
packageC <- upgrade{qtemp[x].Name, "aur", local[i].Version(), qtemp[x].Version}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
@ -320,12 +320,12 @@ func upgradePkgs(flags []string) error {
|
|||||||
}
|
}
|
||||||
repoNames = append(repoNames, k.Name)
|
repoNames = append(repoNames, k.Name)
|
||||||
}
|
}
|
||||||
|
|
||||||
arguments := makeArguments()
|
arguments := makeArguments()
|
||||||
arguments.addArg("S", "noconfirm")
|
arguments.addArg("S", "noconfirm")
|
||||||
arguments.addArg(flags...)
|
arguments.addArg(flags...)
|
||||||
arguments.addTarget(repoNames...)
|
arguments.addTarget(repoNames...)
|
||||||
|
|
||||||
err := passToPacman(arguments)
|
err := passToPacman(arguments)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("Error upgrading repo packages.")
|
fmt.Println("Error upgrading repo packages.")
|
||||||
|
Loading…
Reference in New Issue
Block a user