webOS Compatibility Checker
This is a rewrite of compat-checker in Rust.
All four tools use the same codes. A script can tell an incompatible package from a tool that could not run. A tool reports a bad input or a write failure and exits. It does not panic.
| Code | Meaning |
|---|---|
| 0 | Everything the tool checked is compatible. |
| 1 | The tool ran, and found an incompatibility. |
| 2 | Bad command line. This code comes from the argument parser. |
| 3 | An input file is missing, unreadable, or not in the expected format. |
| 4 | No firmware data to check against. Either the data is not installed, or --fw-releases matched none. |
| 5 | The tool could not write its output. |
| 6 | The package is built in a way no TV will install. |
Only webosbrew-ipk-verify and webosbrew-elf-verify use codes 1 and 4. Only
webosbrew-ipk-verify uses code 6.
Code 3 wins over code 6, which wins over code 1. If the tool cannot read one input, it does not answer the question you asked, so it reports that first. A package no TV will install comes next: that is a fault in the package, not a question of which firmware it runs on.