From 9c7623083e6b9dc7336cc1e9de1ea7cb90b08939 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Thu, 10 Jul 2008 16:21:00 +0000 Subject: urpm_popen errors are not fatal by default on ssh, only for urpmq --- urpm/parallel.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'urpm/parallel.pm') diff --git a/urpm/parallel.pm b/urpm/parallel.pm index 32ff587a..4c44c55d 100644 --- a/urpm/parallel.pm +++ b/urpm/parallel.pm @@ -212,11 +212,12 @@ sub parallel_resolve_dependencies { #- the following state should be cleaned for each iteration. delete $state->{selected}; #- now try an iteration of urpmq. - $parallel->urpm_popen($urpm, 'urpmq', "--synthesis $synthesis -fmc $line " . join(' ', keys %chosen), sub { + my @errors = $parallel->urpm_popen($urpm, 'urpmq', "--synthesis $synthesis -fmc $line " . join(' ', keys %chosen), sub { my ($node, $s) = @_; _parse_urpmq_output($urpm, $state, $node, $s, \$cont, \%chosen, %options); undef; }); + @errors and $urpm->{fatal}(1, join("\n", @errors)); #- check for internal error of resolution. $cont == 1 and die "internal distant urpmq error on choice not taken"; } while $cont; -- cgit v1.2.1