summaryrefslogtreecommitdiffstats
path: root/perl-install/install_any.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r--perl-install/install_any.pm7
1 files changed, 2 insertions, 5 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 8b5c6dc25..e46428db5 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -56,11 +56,8 @@ sub kernelVersion {
sub getNextStep {
- my ($s, $old);
- for ($s = $::o->{steps}{first}; $::o->{steps}{$s}{done}; $s = $::o->{steps}{$s}{next}) {
- $::o->{steps}{$s}{reachable} or return $old;
- $old = $s;
- }
+ my ($s) = $::o->{steps}{first};
+ $s = $::o->{steps}{$s}{next} while $::o->{steps}{$s}{done} || !$::o->{steps}{$s}{reachable};
$s;
}