Repository navigation
0.5.0
·
11 commits
to main
since this release
Exit codes
The verify tools used exit 1 for everything, so a script could not tell an incompatible package from a tool that failed to run. All four tools now share one set of codes:
| Code | Meaning |
|---|---|
| 0 | Everything the tool checked is compatible. |
| 1 | The tool ran, and found an incompatibility. |
| 2 | Bad command line (from the argument parser). |
| 3 | An input file is missing, unreadable, or not in the expected format. |
| 4 | No firmware data. Either the data is not installed, or --fw-releases matched none. |
| 5 | The tool could not write its output. |
Code 3 wins over code 1. Only ipk-verify and elf-verify use codes 1 and 4.
No more panics
ipk-verify: an empty firmware list crashed.-r ">=99"now exits 4.elf-verify: it never exited non-zero at all. It also crashed on an ELF that does not parse.gen-manifest: every failure was a crash - a bad ipk, an unreadable file, an output path it cannot write.fw-extract: a badcontrolfile, or one with noVersionorPackagefield, now skips that entry instead of stopping the run.- A malformed
.ipkwith no control member, or a symlink entry with no target, is an error, not a crash. - A path with no file name, such as
.., no longer crashes any tool.
Also
- Formatting now runs on stable rustfmt. The old config asked for nightly-only options.