diff options
author | Pascal Rigaux <pixel@mandriva.com> | 2008-06-26 11:17:10 +0000 |
---|---|---|
committer | Pascal Rigaux <pixel@mandriva.com> | 2008-06-26 11:17:10 +0000 |
commit | f504fc034e877525388e62d5ffaf2051e50e4655 (patch) | |
tree | da4c99ac0669f79f385d9e53cbf126776776d75c /urpm/main_loop.pm | |
parent | 88c4b8e65b198d0908b4b0387436e7f46bc29064 (diff) | |
download | urpmi-f504fc034e877525388e62d5ffaf2051e50e4655.tar urpmi-f504fc034e877525388e62d5ffaf2051e50e4655.tar.gz urpmi-f504fc034e877525388e62d5ffaf2051e50e4655.tar.bz2 urpmi-f504fc034e877525388e62d5ffaf2051e50e4655.tar.xz urpmi-f504fc034e877525388e62d5ffaf2051e50e4655.zip |
- urpmi
o fix displaying "files are missing" (regression introduced in 5.6)
Diffstat (limited to 'urpm/main_loop.pm')
-rw-r--r-- | urpm/main_loop.pm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/urpm/main_loop.pm b/urpm/main_loop.pm index c02e6004..aae64045 100644 --- a/urpm/main_loop.pm +++ b/urpm/main_loop.pm @@ -49,7 +49,7 @@ unless ($local_sources || $list) { } my %sources = %$local_sources; -my %error_sources; +my @error_sources; urpm::removable::try_mounting_non_cdroms($urpm, $list); @@ -93,7 +93,7 @@ foreach my $set (@{$state->{transaction} || []}) { urpm::get_pkgs::download_packages_of_distant_media($urpm, \@transaction_list, \%transaction_sources, - \%error_sources, + \@error_sources, quiet => $options{verbose} < 0, callback => $callbacks->{trans_log}, ); @@ -255,17 +255,17 @@ $callbacks->{completed} and $callbacks->{completed}->(); #- keep a track of error code. my $exit_code = 0; -if (my @missing = grep { $error_sources{$_} eq 'missing' } keys %error_sources) { +if (my @missing = grep { $_->[1] eq 'missing' } @error_sources) { $callbacks->{message}->(N("Error"), #- Warning : the following message is parsed in urpm::parallel_* N("Installation failed, some files are missing:\n%s\nYou may want to update your urpmi database", - join "\n", map { " " . urpm::download::hide_password($_) } @missing) . "\n" + join "\n", map { " " . urpm::download::hide_password($_->[0]) } @missing) . "\n" ); $exit_code = 10; } -if (my @bad = grep { $error_sources{$_} eq 'bad' } keys %error_sources) { +if (my @bad = grep { $_->[1] eq 'bad' } @error_sources) { $callbacks->{message}->(N("Error"), N("Installation failed, bad rpms:\n%s", - join "\n", map { " " . urpm::download::hide_password($_) } @bad) . "\n"); + join "\n", map { " " . urpm::download::hide_password($_->[0]) } @bad) . "\n"); $exit_code = 11; } if ($nok) { |