From 6ec35bdbbdcbfafa077b6fc8c016233807299999 Mon Sep 17 00:00:00 2001 From: Fiona Ebner Date: Mon, 5 Jun 2023 17:43:08 +0200 Subject: [PATCH] apt: repositories: also detect repository with next suite as configured This avoids that no standard Proxmox repository can be detected during upgrade anymore. There is a 'ignore-pre-upgrade-warning' about the suite already, that the frontend can display when upgrading is not allowed yet. Signed-off-by: Fiona Ebner --- proxmox-apt/src/repositories/mod.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/proxmox-apt/src/repositories/mod.rs b/proxmox-apt/src/repositories/mod.rs index d8848b84..6588b908 100644 --- a/proxmox-apt/src/repositories/mod.rs +++ b/proxmox-apt/src/repositories/mod.rs @@ -106,7 +106,12 @@ pub fn standard_repositories( continue; } - if repo.is_referenced_repository(entry.handle, product, &suite.to_string()) { + if repo.is_referenced_repository(entry.handle, product, &suite.to_string()) + || repo.is_referenced_repository( + entry.handle, + product, + &suite.next().unwrap().to_string(), + ) { entry.status = Some(repo.enabled); } }