summaryrefslogtreecommitdiffstats
path: root/urpm.pm
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-08-29 13:08:36 +0000
committerFrancois Pons <fpons@mandriva.com>2002-08-29 13:08:36 +0000
commit6a26fb5ff196c6fdcf93d636099607d9c6b900e8 (patch)
tree9d09dc98e2c493a21b85549308bfaea106b4b8cb /urpm.pm
parentf6c7d40924ba941dd18d85446ae980c56cf1367d (diff)
downloadurpmi-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.pm12
1 files changed, 8 insertions, 4 deletions
diff --git a/urpm.pm b/urpm.pm
index 4b19c488..e67dc760 100644
--- a/urpm.pm
+++ b/urpm.pm
@@ -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;