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:
Pablo Correa Gómez 2023-07-20 18:47:16 +02:00 committed by Oliver Smith
parent ad85c7bc17
commit a806835441
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 2 deletions

View File

@ -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