distro_info: read the YAML local series path, drop the dead dist_info stanza

This commit is contained in:
2026-09-18 13:09:02 +02:00
parent b489db2728
commit 941f91decf
2 changed files with 4 additions and 5 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ pub async fn get_ordered_series(dist: &str) -> Result<Vec<SeriesInformation>, Bo
})?;
let series_info = &dist_data.series;
let content = if Path::new(series_info.local.as_str()).exists() {
std::fs::read_to_string(format!("/usr/share/distro-info/{dist}.csv")).map_err(|e| {
std::fs::read_to_string(series_info.local.as_str()).map_err(|e| {
format!(
"Failed to read distribution series data for '{dist}' \
from '{}': {}. The 'distro-info' package provides these CSV files.",