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")]
{
execute(
&mut report,
"Flatpak",
|| linux::flatpak_update(run_type),
config.no_retry(),
)?;
execute(
&mut report,
"snap",
|| linux::run_snap(sudo.as_ref(), run_type),
config.no_retry(),
)?;
if config.should_run(Step::System) {
execute(
&mut report,
"Flatpak",
|| linux::flatpak_update(run_type),
config.no_retry(),
)?;
execute(
&mut report,
"snap",
|| linux::run_snap(sudo.as_ref(), run_type),
config.no_retry(),
)?;
}
}
if let Some(commands) = config.commands() {