summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm.pm')
-rw-r--r--urpm.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/urpm.pm b/urpm.pm
index 6d576c3b..00f668b6 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -308,7 +308,9 @@ sub register_rpms {
defined $id && $start <= $id and @requested{($start .. $id)} = (1) x ($id-$start+1);
#- distribute local packages to distant nodes directly in cache of each machine.
- @files && $urpm->{parallel_handler} and $urpm->{parallel_handler}->parallel_register_rpms($urpm, @files);
+ if (@files && $urpm->{parallel_handler}) {
+ $urpm->{parallel_handler}->parallel_register_rpms($urpm, @files);
+ }
%requested;
}