Add Flatpak and snap to Step::System (#218)

This makes them easier to disable
This commit is contained in:
Jonathan Dahan
2019-09-05 02:32:30 -04:00
committed by Roey Darwish Dror
parent f54d46ab2b
commit 8743236acb

View File

@@ -396,18 +396,20 @@ fn run() -> Result<(), Error> {
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
{ {
execute( if config.should_run(Step::System) {
&mut report, execute(
"Flatpak", &mut report,
|| linux::flatpak_update(run_type), "Flatpak",
config.no_retry(), || linux::flatpak_update(run_type),
)?; config.no_retry(),
execute( )?;
&mut report, execute(
"snap", &mut report,
|| linux::run_snap(sudo.as_ref(), run_type), "snap",
config.no_retry(), || linux::run_snap(sudo.as_ref(), run_type),
)?; config.no_retry(),
)?;
}
} }
if let Some(commands) = config.commands() { if let Some(commands) = config.commands() {