mirror of
https://github.com/Jguer/yay
synced 2024-10-31 13:42:27 +00:00
Fix numbermenu not working with new install alg
This commit is contained in:
parent
69c8bf37c8
commit
a33ef81794
2 changed files with 7 additions and 1 deletions
|
@ -26,6 +26,7 @@ func install(parser *arguments) error {
|
||||||
arguments := parser.copy()
|
arguments := parser.copy()
|
||||||
arguments.delArg("u", "sysupgrade")
|
arguments.delArg("u", "sysupgrade")
|
||||||
arguments.delArg("y", "refresh")
|
arguments.delArg("y", "refresh")
|
||||||
|
arguments.op = "S"
|
||||||
arguments.targets = make(stringSet)
|
arguments.targets = make(stringSet)
|
||||||
arguments.addTarget(repos...)
|
arguments.addTarget(repos...)
|
||||||
|
|
||||||
|
|
|
@ -261,7 +261,12 @@ func (parser *arguments) formatTargets() (args []string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (parser *arguments) formatArgs() (args []string) {
|
func (parser *arguments) formatArgs() (args []string) {
|
||||||
op := formatArg(parser.op)
|
var op string
|
||||||
|
|
||||||
|
if parser.op != "" {
|
||||||
|
op = formatArg(parser.op)
|
||||||
|
}
|
||||||
|
|
||||||
args = append(args, op)
|
args = append(args, op)
|
||||||
|
|
||||||
for option, arg := range parser.options {
|
for option, arg := range parser.options {
|
||||||
|
|
Loading…
Reference in a new issue