forked from Mirror/pmbootstrap
commands: remove deviceinfo_parse (MR 2463)
Since parse.deviceinfo() returns a custom class now, it can't be trivially serialized as JSON. This has been broken for months now so it's clear nobody is using this. Let's take the chance to get rid of it. Signed-off-by: Caleb Connolly <caleb@postmarketos.org>
This commit is contained in:
parent
26ec1631ca
commit
7847488058
2 changed files with 0 additions and 14 deletions
|
@ -462,19 +462,6 @@ def newapkbuild(args: PmbArgs) -> None:
|
|||
pmb.build.newapkbuild(args.folder, pass_through, get_context().force)
|
||||
|
||||
|
||||
def deviceinfo_parse(args: PmbArgs) -> None:
|
||||
# Default to all devices
|
||||
devices = args.devices
|
||||
if not devices:
|
||||
devices = pmb.helpers.devices.list_codenames()
|
||||
|
||||
# Iterate over all devices
|
||||
kernel = args.deviceinfo_parse_kernel
|
||||
for device in devices:
|
||||
print(f"{device}, with kernel={kernel}:")
|
||||
print(json.dumps(pmb.parse.deviceinfo(device, kernel), indent=4, sort_keys=True))
|
||||
|
||||
|
||||
def apkbuild_parse(args: PmbArgs) -> None:
|
||||
# Default to all packages
|
||||
packages: Sequence[str] = args.packages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue