mirror of
https://git.proxmox.com/git/proxmox-offline-mirror
synced 2025-08-07 17:57:47 +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) => {
|
(Release::Bookworm, DebianVariant::Security) => {
|
||||||
"/usr/share/keyrings/debian-archive-bookworm-security-automatic.gpg"
|
"/usr/share/keyrings/debian-archive-bookworm-security-automatic.gpg"
|
||||||
}
|
}
|
||||||
(Release::Bookworm, DebianVariant::Updates) |
|
(Release::Bookworm, DebianVariant::Updates)
|
||||||
(Release::Bookworm, DebianVariant::Backports) => {
|
| (Release::Bookworm, DebianVariant::Backports) => {
|
||||||
"/usr/share/keyrings/debian-archive-bookworm-automatic.gpg"
|
"/usr/share/keyrings/debian-archive-bookworm-automatic.gpg"
|
||||||
}
|
}
|
||||||
(Release::Bookworm, _) => "/usr/share/keyrings/debian-archive-bookworm-stable.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 {
|
let default_components = match release {
|
||||||
Release::Bookworm => "main contrib non-free non-free-firmware",
|
Release::Bookworm => "main contrib non-free non-free-firmware",
|
||||||
_ => "main contrib non-free"
|
_ => "main contrib non-free",
|
||||||
};
|
};
|
||||||
|
|
||||||
let components = read_string_from_tty(
|
let components =
|
||||||
"Enter repository components",
|
read_string_from_tty("Enter repository components", Some(default_components))?;
|
||||||
Some(default_components),
|
|
||||||
)?;
|
|
||||||
|
|
||||||
derive_debian_repo(release, variant, &components)?
|
derive_debian_repo(release, variant, &components)?
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user