changes to the AptSource struct

This commit is contained in:
shibazaki 2025-10-03 20:33:40 +02:00
parent cff9f08ff4
commit 721e8973f0

View File

@ -8,12 +8,18 @@ pub struct System {
pub arch: String,
}
pub enum RepoType {
Bin, // deb
Src, // deb-src
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct AptSource {
pub name: String,
pub uri: String,
pub suite: String,
pub components: Vec<String>,
pub name: Option<String>, // optional, not needed
pub bin_repo: RepoType, //
pub uri: String, //
pub debian_version: String, // bookworm, trixie etc.
pub components: Vec<String>, // main, non-free-firmware etc.
}
#[derive(Debug, Clone, Serialize, Deserialize)]
@ -34,12 +40,11 @@ pub struct Options {
pub fail_on_missing: bool,
}
#[derive(Debug, Serialize, Deserialize)]
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Config {
pub system: System,
pub apt_source: Vec<AptSource>,
pub packages: HashMap<String, String>, // name, version
pub pinned_packages: Vec<PinRule>,
pub options: Option<Options>,
}