diff options
author | Francois Pons <fpons@mandriva.com> | 2002-08-29 13:08:36 +0000 |
---|---|---|
committer | Francois Pons <fpons@mandriva.com> | 2002-08-29 13:08:36 +0000 |
commit | 6a26fb5ff196c6fdcf93d636099607d9c6b900e8 (patch) | |
tree | 9d09dc98e2c493a21b85549308bfaea106b4b8cb /urpm.pm | |
parent | f6c7d40924ba941dd18d85446ae980c56cf1367d (diff) | |
download | urpmi-6a26fb5ff196c6fdcf93d636099607d9c6b900e8.tar urpmi-6a26fb5ff196c6fdcf93d636099607d9c6b900e8.tar.gz urpmi-6a26fb5ff196c6fdcf93d636099607d9c6b900e8.tar.bz2 urpmi-6a26fb5ff196c6fdcf93d636099607d9c6b900e8.tar.xz urpmi-6a26fb5ff196c6fdcf93d636099607d9c6b900e8.zip |
4.0-9mdk
Diffstat (limited to 'urpm.pm')
-rw-r--r-- | urpm.pm | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -591,7 +591,6 @@ sub configure { $_->{ignore} = 1; } } - $options{parallel} and unlink "$urpm->{cachedir}/partial/parallel.cz"; foreach (grep { !$_->{ignore} && (!$options{update} || $_->{update}) } @{$urpm->{media} || []}) { delete @{$_}{qw(start end)}; if ($options{callback}) { @@ -617,8 +616,6 @@ sub configure { unless (defined $_->{start} && defined $_->{end}) { $urpm->{error}(_("problem reading synthesis file of medium \"%s\"", $_->{name})); $_->{ignore} = 1; - } else { - $options{parallel} and system "cat '$urpm->{statedir}/synthesis.$_->{hdlist}' >> $urpm->{cachedir}/partial/parallel.cz"; } } } @@ -1638,8 +1635,15 @@ sub resolve_dependencies { require URPM::Resolve; if ($urpm->{parallel_handler}) { + #- build the global synthesis file first. + my $file = "$urpm->{cachedir}/partial/parallel.cz"; + unlink $file; + foreach (@{$urpm->{media}}) { + defined $_->{start} && defined $_->{end} or next; + system "cat '$urpm->{statedir}/synthesis.$_->{hdlist}' >> $file"; + } #- let each node determine what is requested, according to handler given. - $urpm->{parallel_handler}->parallel_resolve_dependencies("$urpm->{cachedir}/partial/parallel.cz", @_); + $urpm->{parallel_handler}->parallel_resolve_dependencies($file, @_); } else { my $db; |