forked from proxmox-mirrors/proxmox
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:
parent
82417de8a8
commit
6ec35bdbbd
@ -106,7 +106,12 @@ pub fn standard_repositories(
|
|||||||
continue;
|
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);
|
entry.status = Some(repo.enabled);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user