summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-07-10 11:57:57 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-07-10 11:57:57 +0000
commitd0e9b1aa125a83f9de08d4554895eaed85386970 (patch)
tree587d87bf989b840a25d5baf324eef8b90b8a4b33 /urpm.pm
parent31df3fb471b4c694fe4f0eb33b25dc7376a431b7 (diff)
downloadurpmi-d0e9b1aa125a83f9de08d4554895eaed85386970.tar
urpmi-d0e9b1aa125a83f9de08d4554895eaed85386970.tar.gz
urpmi-d0e9b1aa125a83f9de08d4554895eaed85386970.tar.bz2
urpmi-d0e9b1aa125a83f9de08d4554895eaed85386970.tar.xz
urpmi-d0e9b1aa125a83f9de08d4554895eaed85386970.zip
cleanup
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;
}