Fix numbermenu not working with new install alg

This commit is contained in:
morganamilo 2018-01-21 11:48:09 +00:00
parent 69c8bf37c8
commit a33ef81794
No known key found for this signature in database
GPG key ID: 6FE9E7996B0B082E
2 changed files with 7 additions and 1 deletions

View file

@ -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...)

View file

@ -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 {