deviceinfo: make parse_kernel_suffix private
Just a small and trivial improvement to signal method is private Signed-off-by: Pablo Correa Gómez <ablocorrea@hotmail.com> Reviewed-by: Oliver Smith <ollieparanoid@postmarketos.org> Link: https://lists.sr.ht/~postmarketos/pmbootstrap-devel/%3C20230720164718.18964-1-pabloyoyoista@postmarketos.org%3E
This commit is contained in:
parent
ad85c7bc17
commit
a806835441
|
@ -70,7 +70,7 @@ def sanity_check(info, path):
|
|||
f" and try again: {path}")
|
||||
|
||||
|
||||
def parse_kernel_suffix(args, info, device, kernel):
|
||||
def _parse_kernel_suffix(args, info, device, kernel):
|
||||
"""
|
||||
Remove the kernel suffix (as selected in 'pmbootstrap init') from
|
||||
deviceinfo variables. Related:
|
||||
|
@ -151,6 +151,6 @@ def deviceinfo(args, device=None, kernel=None):
|
|||
if key not in ret:
|
||||
ret[key] = ""
|
||||
|
||||
ret = parse_kernel_suffix(args, ret, device, kernel)
|
||||
ret = _parse_kernel_suffix(args, ret, device, kernel)
|
||||
sanity_check(ret, path)
|
||||
return ret
|
||||
|
|
Loading…
Reference in New Issue