committed by
GitHub
parent
cdbcd7be7a
commit
a519bc5475
@@ -153,6 +153,7 @@ pub struct Linux {
|
||||
trizen_arguments: Option<String>,
|
||||
dnf_arguments: Option<String>,
|
||||
enable_tlmgr: Option<bool>,
|
||||
redhat_distro_sync: Option<bool>,
|
||||
emerge_sync_flags: Option<String>,
|
||||
emerge_update_flags: Option<String>,
|
||||
}
|
||||
@@ -627,7 +628,7 @@ impl Config {
|
||||
.and_then(|vagrant| vagrant.always_suspend)
|
||||
}
|
||||
|
||||
/// Extra yay arguments
|
||||
/// Enable tlmgr on Linux
|
||||
#[allow(dead_code)]
|
||||
pub fn enable_tlmgr_linux(&self) -> bool {
|
||||
self.config_file
|
||||
@@ -637,6 +638,16 @@ impl Config {
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Use distro-sync in Red Hat based distrbutions
|
||||
#[allow(dead_code)]
|
||||
pub fn redhat_distro_sync(&self) -> bool {
|
||||
self.config_file
|
||||
.linux
|
||||
.as_ref()
|
||||
.and_then(|linux| linux.redhat_distro_sync)
|
||||
.unwrap_or(false)
|
||||
}
|
||||
|
||||
/// Should we ignore failures for this step
|
||||
pub fn ignore_failure(&self, step: Step) -> bool {
|
||||
self.config_file
|
||||
|
||||
Reference in New Issue
Block a user