-
Committer:
Colin Watson
-
Date:
2022-09-27 10:40:49 UTC
-
Revision ID:
cjwatson@canonical.com-20220927104049-96oiuj78ei08l81g
Compare PostgreSQL versions using packaging.version.Version.
`distutils.version.LooseVersion` is deprecated as of setuptools 59.6.0,
and the whole of `distutils` is deprecated as of Python 3.10. Using
`packaging.version.Version` is a bit of a cheat since PostgreSQL
versions aren't officially PEP 440 versions, but we only care about
things that show up as subdirectories of `/usr/lib/postgresql/` and in
practice those are simple enough that it's fine.