diff options
Diffstat (limited to 'perl-install/install_steps.pm')
-rw-r--r-- | perl-install/install_steps.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_steps.pm b/perl-install/install_steps.pm index 0d5a2a78a..5c1c1d817 100644 --- a/perl-install/install_steps.pm +++ b/perl-install/install_steps.pm @@ -36,7 +36,7 @@ use fs; sub new($$) { my ($type, $o) = @_; - bless $o, ref $type || $type; + bless $o, ref($type) || $type; return $o; } @@ -63,7 +63,7 @@ sub leavingStep { my $reachable = 1; if (my $needs = $o->{steps}{$s}{needs}) { - my @l = ref $needs ? @$needs : $needs; + my @l = ref($needs) ? @$needs : $needs; $reachable = min(map { $o->{steps}{$_}{done} || 0 } @l); } $o->{steps}{$s}{reachable} = 1 if $reachable; |