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.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm
index 9cf68eb7b..0560e1016 100644
--- a/perl-install/install_any.pm
+++ b/perl-install/install_any.pm
@@ -98,6 +98,8 @@ sub shells($) {
sub addToBeDone(&$) {
my ($f, $step) = @_;
+ return &$f() if $::o->{steps}{$step}{done};
+
push @{$::o->{steps}{$step}{toBeDone}}, $f;
}