From 5cd07c44fb4b44b0673f82cd832002c954512361 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 5 Jul 2017 18:49:52 +0200 Subject: [PATCH] Display device count in 'pmbootstrap init' --- pmb/config/init.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pmb/config/init.py b/pmb/config/init.py index 18da44bb..b0f897e0 100644 --- a/pmb/config/init.py +++ b/pmb/config/init.py @@ -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)