From 721e8973f00ddcdfe773566151e48806149d019c Mon Sep 17 00:00:00 2001 From: shibazaki Date: Fri, 3 Oct 2025 20:33:40 +0200 Subject: [PATCH] changes to the AptSource struct --- src/structs.rs | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/structs.rs b/src/structs.rs index f194d77..3df2add 100644 --- a/src/structs.rs +++ b/src/structs.rs @@ -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, + pub name: Option, // optional, not needed + pub bin_repo: RepoType, // + pub uri: String, // + pub debian_version: String, // bookworm, trixie etc. + pub components: Vec, // 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, pub packages: HashMap, // name, version - pub pinned_packages: Vec, pub options: Option, }