sp-variant updates in 2021

2.1.1 - 2021-12-18

Fixes

  • All: making sure all the implementations output the same thing for command run package.list_all.

  • Rust: fixed a command.run bug: do not output the command to run, the tools that invoke storpool_variant may use its output!

Other changes

  • All: added two-clause BSD licenses to all the source files.

  • Python: dropped a “type: ignore” comment and bumped the mypy version used for the test suite to 0.920.

  • Rust: Code clean-up:

    • Dropped an unused internal url field.

    • Simplified a double match.

    • Using .find_map() instead of re-implementing it.

    • Streamlined yai::parse().

2.1.0 - 2021-11-15

  • All: on RedHat-derived distributions, the package.list_all command now displays the full epoch:version-release (EVR) string instead of only the version component.

  • All: added support for Ubuntu 21.10 (Impish Indri).

2.0.0 - 2021-10-24

Incompatible changes

Rust: changed the return type of get_program_version() and get_program_version_from() from String to &str.

Fixes

  • All: installed (or updated as necessary) the ca-certificates package on RedHat-derived distributions, too, to take care of the Let’s Encrypt certificate expiration debacle.

  • Python: fixed the program name in the usage message of the sp_variant and sp_build_repo tools.

  • build-repo: using trivver to sort DEBIAN9 before DEBIAN10.

  • test-docker: running apt-get update if necessary.

Additions

  • All: added a descr field to the variant containing a brief human-readable name/description.

  • sh: installing ourselves as /usr/sbin/sp_variant in repo add so that other programs may use this helper.

  • Rust: using the new Variant.descr field in the documentation.

Other changes

Rust:

  • Auto-generating the VariantKind enum.

  • Making the sp_variant::data module private.

  • Created the variants’ data structure directly, do not decode a JSON document.

test-docker:

  • Added the -i option to limit the images to run on.

  • Showing the containers’ output continually.

1.3.0 - 2021-09-15

Started. First public release.