mirror of
https://git.proxmox.com/git/proxmox-offline-mirror
synced 2025-08-06 07:55:21 +00:00
offline mirror binary: rustfmt clean up
Signed-off-by: Stefan Sterz <s.sterz@proxmox.com>
This commit is contained in:
parent
e8fded3311
commit
0735f868cf
@ -179,8 +179,8 @@ fn derive_debian_repo(
|
||||
(Release::Bookworm, DebianVariant::Security) => {
|
||||
"/usr/share/keyrings/debian-archive-bookworm-security-automatic.gpg"
|
||||
}
|
||||
(Release::Bookworm, DebianVariant::Updates) |
|
||||
(Release::Bookworm, DebianVariant::Backports) => {
|
||||
(Release::Bookworm, DebianVariant::Updates)
|
||||
| (Release::Bookworm, DebianVariant::Backports) => {
|
||||
"/usr/share/keyrings/debian-archive-bookworm-automatic.gpg"
|
||||
}
|
||||
(Release::Bookworm, _) => "/usr/share/keyrings/debian-archive-bookworm-stable.gpg",
|
||||
@ -239,13 +239,11 @@ fn action_add_mirror(config: &SectionConfigData) -> Result<Vec<MirrorConfig>, Er
|
||||
|
||||
let default_components = match release {
|
||||
Release::Bookworm => "main contrib non-free non-free-firmware",
|
||||
_ => "main contrib non-free"
|
||||
_ => "main contrib non-free",
|
||||
};
|
||||
|
||||
let components = read_string_from_tty(
|
||||
"Enter repository components",
|
||||
Some(default_components),
|
||||
)?;
|
||||
let components =
|
||||
read_string_from_tty("Enter repository components", Some(default_components))?;
|
||||
|
||||
derive_debian_repo(release, variant, &components)?
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user