Signed-off-by: Fabian Grünbichler <[email protected]>
---
src/bin/proxmox-offline-mirror.rs | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/bin/proxmox-offline-mirror.rs
b/src/bin/proxmox-offline-mirror.rs
index b14e680..89bd0bb 100644
--- a/src/bin/proxmox-offline-mirror.rs
+++ b/src/bin/proxmox-offline-mirror.rs
@@ -221,11 +221,10 @@ fn action_add_mirror(config: &SectionConfigData) ->
Result<Vec<MirrorConfig>, Er
let variant =
read_selection_from_tty("Select repository variant",
variants, Some(0))?;
- let default_components = match release {
- Release::Bookworm | Release::Trixie => {
- "main contrib non-free non-free-firmware"
- }
- _ => "main contrib non-free",
+ let default_components = if release >= &Release::Bookworm {
+ "main contrib non-free non-free-firmware"
+ } else {
+ "main contrib non-free"
};
let components =
--
2.47.3
_______________________________________________
pve-devel mailing list
[email protected]
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel