Skip to content
Snippets Groups Projects
Unverified Commit 513f52cb authored by Caleb Connolly's avatar Caleb Connolly :recycle:
Browse files

commands: remove deviceinfo_parse


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: default avatarCaleb Connolly <caleb@postmarketos.org>
parent 1a5db42c
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,6 @@ unmigrated_commands = [
"install",
"checksum",
"build",
"deviceinfo_parse",
"apkbuild_parse",
"apkindex_parse",
"config",
......
......@@ -456,19 +456,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}:", file=sys.stderr)
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment