distro_info: accept case-insensitive dist in effective_series, fix UNRELEASED fallbacks

This commit is contained in:
2026-09-16 12:12:15 +02:00
parent 60976d3feb
commit 9c3394750d
2 changed files with 27 additions and 4 deletions
+3 -1
View File
@@ -206,7 +206,9 @@ fn main() {
// its own distribution.
match rt.block_on(async {
if pkh::distro_info::is_unreleased(&current_series) {
let dist = pkh::build::env::current_vendor();
// Vendors keep original casing ("Ubuntu"),
// while the series data keys are lowercase
let dist = pkh::build::env::current_vendor().to_lowercase();
let mut series_list =
vec![pkh::distro_info::UNRELEASED.to_string()];
series_list.extend(