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 <f.ebner@proxmox.com>
This commit is contained in:
Fiona Ebner 2023-06-05 17:43:08 +02:00 committed by Wolfgang Bumiller
parent 82417de8a8
commit 6ec35bdbbd

View File

@ -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);
}
}