Apt arguments (fix #669)

This commit is contained in:
Roey Darwish Dror
2021-04-06 10:54:23 +03:00
parent b165a6fe0b
commit a6d7c6dca9
2 changed files with 24 additions and 12 deletions

View File

@@ -160,6 +160,7 @@ pub struct Linux {
yay_arguments: Option<String>,
trizen_arguments: Option<String>,
dnf_arguments: Option<String>,
apt_arguments: Option<String>,
enable_tlmgr: Option<bool>,
redhat_distro_sync: Option<bool>,
emerge_sync_flags: Option<String>,
@@ -608,7 +609,16 @@ impl Config {
.unwrap_or("--devel")
}
/// Extra yay arguments
/// Extra apt arguments
#[allow(dead_code)]
pub fn apt_arguments(&self) -> Option<&str> {
self.config_file
.linux
.as_ref()
.and_then(|linux| linux.apt_arguments.as_deref())
}
/// Extra dnf arguments
#[allow(dead_code)]
pub fn dnf_arguments(&self) -> Option<&str> {
self.config_file