pmb.config.init: fix python 3.5 compat

Don't use f-strings, as they result in invalid syntax errors for python
3.5. This was making the build.postmarketos.org CI tests fail.
This commit is contained in:
Oliver Smith 2019-11-03 15:31:45 +01:00
parent cd2180d178
commit dcb89a62e0
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 4 additions and 3 deletions

View File

@ -235,8 +235,9 @@ def ask_for_device(args):
new_vendor = vendor not in vendors
if new_vendor:
logging.info(f"The specified vendor ({vendor}) could not be found "
f"in existing ports, do you want to start a new port?")
logging.info("The specified vendor ({}) could not be found in"
" existing ports, do you want to start a new"
" port?".format(vendor))
if not pmb.helpers.cli.confirm(args, default=True):
continue
else:
@ -267,7 +268,7 @@ def ask_for_device(args):
continue
# New port creation confirmed
logging.info(f"Generating new aports for: {device}...")
logging.info("Generating new aports for: {}...".format(device))
pmb.aportgen.generate(args, "device-" + device)
pmb.aportgen.generate(args, "linux-" + device)
break