Add Flatpak and snap to Step::System (#218)
This makes them easier to disable
This commit is contained in:
committed by
Roey Darwish Dror
parent
f54d46ab2b
commit
8743236acb
26
src/main.rs
26
src/main.rs
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user