diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-17 10:51:35 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-11-17 10:51:35 +0000 |
commit | 839e03c164ca97b815877e2eaad9d8abee8e8b45 (patch) | |
tree | 877eadf444d24cd6c1aad9464a11fe4b69d7cdfb /urpmi | |
parent | 272dd51827204fc87ae1d68bcde12694637eedf2 (diff) | |
download | urpmi-839e03c164ca97b815877e2eaad9d8abee8e8b45.tar urpmi-839e03c164ca97b815877e2eaad9d8abee8e8b45.tar.gz urpmi-839e03c164ca97b815877e2eaad9d8abee8e8b45.tar.bz2 urpmi-839e03c164ca97b815877e2eaad9d8abee8e8b45.tar.xz urpmi-839e03c164ca97b815877e2eaad9d8abee8e8b45.zip |
Add more notes about messages parsed by urpm::parallel_*
Diffstat (limited to 'urpmi')
-rwxr-xr-x | urpmi | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -592,6 +592,7 @@ foreach my $set (@{$state->{transaction} || []}) { #- check for local files. if (my @missing = grep { m|^/| && ! -e $_ } values %transaction_sources_install, values %transaction_sources) { + #- Warning : the following message is parsed in urpm::parallel_* message(N("Installation failed, some files are missing:\n%s\nYou may want to update your urpmi database", join "\n", map { s|([^:]*://[^/:\@]*:)[^/:\@]*(\@.*)|$1xxxx$2|; " $_" } @missing)); ++$nok; @@ -602,6 +603,7 @@ foreach my $set (@{$state->{transaction} || []}) { if ($install_src) { if (my @l = grep { /\.src\.rpm$/ } values %transaction_sources_install, values %transaction_sources) { system("rpm", "-i$rpm_opt", @l, ($root ? ("--root", $root) : @{[]})); + #- Warning : the following message is parsed in urpm::parallel_* $? and message(N("Installation failed")), ++$nok; } next; @@ -655,6 +657,7 @@ foreach my $set (@{$state->{transaction} || []}) { %install_options_common, ); if (@l) { + #- Warning : the following message is parsed in urpm::parallel_* message(N("Installation failed") . ":\n" . join("\n", map { "\t$_" } @l)); if ($urpm->{options}{auto} || !$urpm->{options}{'allow-nodeps'} && !$urpm->{options}{'allow-force'}) { ++$nok; @@ -673,6 +676,7 @@ foreach my $set (@{$state->{transaction} || []}) { %install_options_common, ); if (@l) { + #- Warning : the following message is parsed in urpm::parallel_* message(N("Installation failed") . ":\n" . join("\n", map { "\t$_" } @l)); if (!$urpm->{options}{'allow-force'}) { ++$nok; @@ -689,6 +693,7 @@ foreach my $set (@{$state->{transaction} || []}) { %install_options_common, ); if (@l) { + #- Warning : the following message is parsed in urpm::parallel_* message(N("Installation failed") . ":\n" . join("\n", map { "\t$_" } @l)); ++$nok; push @errors, @l; @@ -710,6 +715,7 @@ foreach my $set (@{$state->{transaction} || []}) { #- keep a track of error code. my $exit_code = 0; if (values %error_sources) { + #- Warning : the following message is parsed in urpm::parallel_* message(N("Installation failed, some files are missing:\n%s\nYou may want to update your urpmi database", join "\n", map { s|([^:]*://[^/:\@]*:)[^/:\@]*(\@.*)|$1xxxx$2|; " $_" } values %error_sources)); $exit_code = 10; @@ -723,6 +729,7 @@ if ($nok) { } } else { if ($test) { + #- Warning : the following message is parsed in urpm::parallel_* message(N("Installation is possible")); } elsif (@names || @src_names || @files || @src_files || $auto_select) { if (@{$state->{transaction} || []} == 0 && @ask_unselect == 0) { |