debian-forge/osbuild
Christian Kellner 6695294a29 meta: ability to auto-detect runner
The way that runners were designed is the following: For each distro
we have a specific runner. In case a new version of the distro can
use the previous runner, we just create a symlink. In case a new
distro version needs adjustments, the runner is copied and adjusted.
This is a very clean and obvious design. There is one big drawback:
For each new distribution a symlink must be created before it can be
used. For Fedora that should ideally happen when it is branched; and
this will, ipso facto, always be a symlink since at the time of the
branching the new distro is the old distro. But at this very moment
osbuild will be broken since it does not contain the new runner; the
only way to prevent this is to create the corresponding new runner
before the distro is branched, where it then must be a symlink too.
This very much suggest that instead of the explicit symlink, which
does not /that/ much clarity, the existing "old" runner should just
work for the new distribution. This commit implements the logic to
do just that: all existing runners are parsed into a distro and
version tuple and then, given a specific requested distro, the best
matching one is return.
2022-10-11 12:49:16 +02:00
..
formats osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
util osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
__init__.py Post release version bump 2022-09-28 08:21:46 +00:00
__main__.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
api.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
buildroot.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
devices.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
host.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
inputs.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
loop.py loop: silence W0201 (attribute outside init) in set_status 2022-05-06 17:33:23 +02:00
main_cli.py osbuild: share terminal formats between files 2022-09-09 21:43:56 +02:00
meta.py meta: ability to auto-detect runner 2022-10-11 12:49:16 +02:00
monitor.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
mounts.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
objectstore.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
pipeline.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
remoteloop.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00
sources.py osbuild: run isort on all files 2022-09-12 13:32:51 +02:00