~toabctl/ubuntu-docker-images/+git/utils:print-manifest

Last commit made on 2021-04-13
Get this branch:
git clone -b print-manifest https://git.launchpad.net/~toabctl/ubuntu-docker-images/+git/utils
Only Thomas Bechtold can upload to this branch. If you are Thomas Bechtold please log in for upload directions.

Branch merges

Branch information

Name:
print-manifest
Repository:
lp:~toabctl/ubuntu-docker-images/+git/utils

Recent commits

b47427b... by Sergio Durigan Junior

New CLI app to print the manifest of an image:tag

This CLI application can be used to print the manifest of an
image:tag. It will eventually be used in our unit tests in order to
obtain the manifest and verify that everything is correct with it.

Signed-off-by: Sergio Durigan Junior <email address hidden>

6e6af34... by Sergio Durigan Junior

Implement function to print the manifest for an image:tag

This will be the base for a new CLI application that will print
manifests for a certain image:tag combination.

Signed-off-by: Sergio Durigan Junior <email address hidden>

fb931ee... by Bryce Harrington

software-versions: Set $CODENAMES as read-only

2d7d8f6... by Bryce Harrington

software-versions: Omit prometheus and other snap-based packages

(For now anyway...)

55014af... by Bryce Harrington

software-versions: Add mention of --format to usage()

b9965ea... by Bryce Harrington

software_versions: Fix shellcheck issues

Mostly changing the local declarations, and a few quoted variables.
There was also a typo in the num_software decremental.

e2ce68d... by Bryce Harrington

software-versions: Generalize codename list

Instead of hardcoding hirsute and focal, iterate over an array of
codenames. Refactor the report formatting accordingly.

This also fixes a few JSON formatting issues I didn't notice before.

To test JSON syntax:
     $ ./software-versions.sh --format json > /tmp/foo.json
     $ json-check /tmp/foo.json
     PASS

07a688c... by Bryce Harrington

software_versions: Use binary package to get source package version

Rather than hard-code per-release package version numbers to use in
determining the M.N software version, take advantage of the fact that
each of the M.N-style source packages have stable names for related binary
packages. Lookup the version numbers for *those* and then use them to
determine the appropriate M.N.

596de5c... by Bryce Harrington

software_versions: Handle version numbers with +ver debian

postgresql-common has version numbers like 13+NNN. The number after the
+ is a debian version that can be treated same as -.

6ff8610... by Bryce Harrington

software-versions: Add software_versions()

This routine determines the M.N number given a Debian-style package
version number.