new: build the target-distribution menu from supported_dists

This commit is contained in:
2026-09-18 13:10:46 +02:00
parent c106ebe315
commit 69f3c3954e
2 changed files with 17 additions and 5 deletions
+5 -2
View File
@@ -214,9 +214,12 @@ fn parse_series_csv(content: &str) -> Result<Vec<SeriesInformation>, Box<dyn Err
Ok(series_info_list)
}
/// List the distributions known to pkh (e.g. "debian", "ubuntu")
/// List the distributions known to pkh (e.g. "debian", "ubuntu"), sorted so
/// that menus and error messages derived from it are deterministic
pub fn supported_dists() -> Vec<String> {
DATA.dist.keys().cloned().collect()
let mut dists: Vec<String> = DATA.dist.keys().cloned().collect();
dists.sort();
dists
}
/// Special changelog distribution marking an entry that has not been