pmb.aportgen: fix architecture autocomplete (MR 2054)
Previously hitting the tab key wouldn't actually complete the architecture field.
This commit is contained in:
parent
edf43916a5
commit
b18281ab26
|
@ -16,7 +16,7 @@ def ask_for_architecture(args):
|
||||||
architectures.remove("armhf")
|
architectures.remove("armhf")
|
||||||
while True:
|
while True:
|
||||||
ret = pmb.helpers.cli.ask(args, "Device architecture", architectures,
|
ret = pmb.helpers.cli.ask(args, "Device architecture", architectures,
|
||||||
architectures[0])
|
architectures[0], complete=architectures)
|
||||||
if ret in architectures:
|
if ret in architectures:
|
||||||
return ret
|
return ret
|
||||||
logging.fatal("ERROR: Invalid architecture specified. If you want to"
|
logging.fatal("ERROR: Invalid architecture specified. If you want to"
|
||||||
|
|
Loading…
Reference in New Issue