Pull request #73: fix(coreos-efibootguard.py): fix the script for older python version

Merge in ICO/coreos from fix/devtool_efibootguard_script to master

* commit 'c003449178fdb31ca8f39c15516129774591944a':
  fix(coreos-efibootguard.py): fix the script for older python version
This commit is contained in:
Patrick Vogelaar 2023-04-25 21:32:21 +02:00
commit 7e5acb1fcd
1 changed files with 4 additions and 3 deletions

View File

@ -16,6 +16,7 @@ from devtool import setup_tinfoil, parse_recipe
from dataclasses import dataclass
from pathlib import Path
from shlex import quote
from typing import List
def register_commands(subparsers, context):
"""Register devtool subcommands from this plugin"""
@ -125,7 +126,7 @@ class UKIGeneratorArgs:
f"keydir: {self.keydir}\n"
)
def get_buid_cmd(self) -> list[str]:
def get_buid_cmd(self) -> List[str]:
"""
Return the command needed to build the UKI as an array
"""
@ -141,7 +142,7 @@ class UKIGeneratorArgs:
args += ["--dtb", dtb]
return args
def get_sign_cmd(self) -> list[str]:
def get_sign_cmd(self) -> List[str]:
"""
Return the command needed to sign the UKI in place as an array
"""
@ -213,7 +214,7 @@ def printi(txt, indent=1, *, iprefix=" ", end="\n"):
print(textwrap.indent(txt, iprefix * indent), end=end)
def dtb_to_list(dtb, deploy_dir) -> list[str]:
def dtb_to_list(dtb, deploy_dir) -> List[str]:
"""
Convert the string array from bitbake into a python list. Only the basename
of the dtb is taken and DEPLOY_DIR is appended