Fix breakage

This commit is contained in:
Roey Darwish Dror
2021-12-12 13:52:07 +02:00
parent 97958041c9
commit 1f3d8d39a0
3 changed files with 7 additions and 3 deletions

2
Cargo.lock generated
View File

@@ -1830,7 +1830,7 @@ dependencies = [
[[package]] [[package]]
name = "topgrade" name = "topgrade"
version = "8.1.0" version = "8.1.1"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"cfg-if 1.0.0", "cfg-if 1.0.0",

View File

@@ -5,7 +5,7 @@ categories = ["os"]
keywords = ["upgrade", "update"] keywords = ["upgrade", "update"]
license-file = "LICENSE" license-file = "LICENSE"
repository = "https://github.com/r-darwish/topgrade" repository = "https://github.com/r-darwish/topgrade"
version = "8.1.0" version = "8.1.1"
authors = ["Roey Darwish Dror <roey.ghost@gmail.com>"] authors = ["Roey Darwish Dror <roey.ghost@gmail.com>"]
exclude = ["doc/screenshot.gif"] exclude = ["doc/screenshot.gif"]
edition = "2018" edition = "2018"

View File

@@ -11,7 +11,7 @@ use pretty_env_logger::formatted_timed_builder;
use regex::Regex; use regex::Regex;
use serde::Deserialize; use serde::Deserialize;
use structopt::StructOpt; use structopt::StructOpt;
use strum::{EnumIter, EnumString, EnumVariantNames, VariantNames}; use strum::{EnumIter, EnumString, EnumVariantNames, IntoEnumIterator, VariantNames};
use sys_info::hostname; use sys_info::hostname;
use which_crate::which; use which_crate::which;
@@ -517,6 +517,10 @@ impl Config {
enabled_steps.extend(only) enabled_steps.extend(only)
} }
if enabled_steps.is_empty() {
enabled_steps.extend(Step::iter());
}
let mut disabled_steps: Vec<Step> = Vec::new(); let mut disabled_steps: Vec<Step> = Vec::new();
disabled_steps.extend(&opt.disable); disabled_steps.extend(&opt.disable);
if let Some(disabled) = config_file.disable.as_ref() { if let Some(disabled) = config_file.disable.as_ref() {