~toabctl/ubuntu-docker-images/+git/utils:software-versions

Last commit made on 2021-04-13
Get this branch:
git clone -b software-versions 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:
software-versions
Repository:
lp:~toabctl/ubuntu-docker-images/+git/utils

Recent commits

328e350... by Bryce Harrington

software-versions.sh: Set $CODENAMES as read-only

fb76f34... by Bryce Harrington

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

(For now anyway...)

f030a57... by Bryce Harrington

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

c7fd886... 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.

7d27d2e... 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

4859a78... 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.

84a35f2... 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 -.

f0c5ec4... by Bryce Harrington

software-versions: Add software_versions()

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

1d199e9... by Bryce Harrington

software-versions: Start work on additional software

c31858a... by Bryce Harrington

software-versions: Use template for determining source package name

Introduces a 'M.N' versioning notion for software, and a routine to
substitute these two values into source package template strings.