diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/network/thirdparty.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/network/thirdparty.pm b/lib/network/thirdparty.pm index 5740604..be1fe88 100644 --- a/lib/network/thirdparty.pm +++ b/lib/network/thirdparty.pm @@ -302,12 +302,12 @@ sub install_packages { } my $optional = ref $settings->{$option} eq 'HASH' && $settings->{$option}{optional}; - if (my @avalaible = get_available_packages($option, $in, @packages)) { - log::explanations("Installing thirdparty packages ($option) " . join(', ', @avalaible)); - if ($in->do_pkgs->install(@avalaible) && check_installed($option, $settings, $driver)) { + if (my @available = get_available_packages($option, $in, @packages)) { + log::explanations("Installing thirdparty packages ($option) " . join(', ', @available)); + if ($in->do_pkgs->install(@available) && check_installed($option, $settings, $driver)) { next; } elsif (!$optional) { - warn_not_installed($in, @avalaible); + warn_not_installed($in, @available); } } next if $optional; |