Commit 56ddcaa
main: provide
Certain image types have the notion of being in a preview state. Also
called "final", "supported", or "prerelease".
In `images`'s distribution definitions we define this flag per version
of a distribution. This means that we need to quickly do releases to
update this value before a release candidate is built (release
candidates are built as "supported").
When pungi schedules composes it knows the supported state of the
compose. Thus it is a good idea to let the preview state of a
distro be overridden by the `pungi` -> `koji` -> `image-builder`
chain.
Let's include a `--preview` argument. When the option is not passed at
all we let `images` determine the preview state (based on its
distribution definitions). When the option is passed we pass along its
value to `images` where it is then used instead of the default.
I've kept the option hidden here because it really only should be used
by build systems or advanced users (we might document its use) and not
confuse normal users; who would usually receive new distribution
definitions with the next `image-builder` release which contain the
correct preview state, though it will lag a bit in time.
Signed-off-by: Simon de Vlieger <cmdr@supakeen.com>--preview to toggle preview state1 parent cf20ed6 commit 56ddcaa
2 files changed
+17
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
200 | 212 | | |
201 | 213 | | |
202 | 214 | | |
| |||
324 | 336 | | |
325 | 337 | | |
326 | 338 | | |
| 339 | + | |
327 | 340 | | |
328 | 341 | | |
329 | 342 | | |
| |||
588 | 601 | | |
589 | 602 | | |
590 | 603 | | |
| 604 | + | |
| 605 | + | |
591 | 606 | | |
592 | 607 | | |
593 | 608 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
| |||
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| 102 | + | |
101 | 103 | | |
102 | 104 | | |
103 | 105 | | |
| |||
0 commit comments