chlog,cli,docs: offer suite-aliased series in the chlog selector

The chlog series selector only appeared when the changelog's current
distribution resolved to a known series; a Debian package targeting
'unstable' (or 'stable', 'testing', ...) fell through to keeping the
current series, silently, with no menu.

Resolve the changelog distribution through the suite aliases first
(unstable identifies the same series as sid, which resolves to the
Debian series list). The selector offers an aliased series as
'<suite> (<series>)' — 'unstable (sid)' — preselected, but selects
the suite name: what a changelog distribution field expects, instead
of the codename. Every other label and free-typed input selects
itself, unchanged.

Reflect the selector in the README roadmap checklist.
This commit is contained in:
2026-09-21 11:52:39 +02:00
parent 8c6f6f4028
commit 02e1f739c3
3 changed files with 191 additions and 21 deletions
+4 -1
View File
@@ -445,10 +445,13 @@ fn main() {
match rt.block_on(pkh::changelog::series_candidates(&changelog_path)) {
Some(pkh::changelog::SeriesCandidates::Choose {
options,
values,
default,
fallback,
}) => match pkh::ui::select_series(&options, &default) {
Ok(selected) => Some(selected),
Ok(selected) => {
Some(pkh::changelog::selected_series(&options, &values, selected))
}
Err(e) => {
error!(
"Series selection failed: {}. Using current series '{}' instead.",