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:
Caleb Connolly 2024-10-28 01:06:29 +01:00
parent 26ec1631ca
commit 7847488058
No known key found for this signature in database
GPG key ID: 0583312B195F64B6
2 changed files with 0 additions and 14 deletions

View file

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