Display device count in 'pmbootstrap init'

This commit is contained in:
Oliver Smith 2017-07-05 18:49:52 +02:00
parent 9d9dc9e541
commit 5cd07c44fb
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,9 @@ def init(args):
# Device
devices = sorted(pmb.helpers.devices.list(args))
logging.info("Target device (either an existing one, or a new one for"
" porting). Available: " + ", ".join(devices))
" porting).")
logging.info("Available (" + str(len(devices)) + "): " +
", ".join(devices))
cfg["pmbootstrap"]["device"] = pmb.helpers.cli.ask(args, "Device",
None, args.device)