changes to the AptSource struct
This commit is contained in:
parent
cff9f08ff4
commit
721e8973f0
@ -8,12 +8,18 @@ pub struct System {
|
|||||||
pub arch: String,
|
pub arch: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
pub enum RepoType {
|
||||||
|
Bin, // deb
|
||||||
|
Src, // deb-src
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct AptSource {
|
pub struct AptSource {
|
||||||
pub name: String,
|
pub name: Option<String>, // optional, not needed
|
||||||
pub uri: String,
|
pub bin_repo: RepoType, //
|
||||||
pub suite: String,
|
pub uri: String, //
|
||||||
pub components: Vec<String>,
|
pub debian_version: String, // bookworm, trixie etc.
|
||||||
|
pub components: Vec<String>, // main, non-free-firmware etc.
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
@ -34,12 +40,11 @@ pub struct Options {
|
|||||||
pub fail_on_missing: bool,
|
pub fail_on_missing: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
pub struct Config {
|
pub struct Config {
|
||||||
pub system: System,
|
pub system: System,
|
||||||
pub apt_source: Vec<AptSource>,
|
pub apt_source: Vec<AptSource>,
|
||||||
pub packages: HashMap<String, String>, // name, version
|
pub packages: HashMap<String, String>, // name, version
|
||||||
|
|
||||||
pub pinned_packages: Vec<PinRule>,
|
pub pinned_packages: Vec<PinRule>,
|
||||||
pub options: Option<Options>,
|
pub options: Option<Options>,
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user