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:
parent
cd2180d178
commit
dcb89a62e0
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue