diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2003-03-05 20:06:46 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2003-03-05 20:06:46 +0000 |
commit | c19e3039a252f50b986a2e4b8e66817395f512ee (patch) | |
tree | d0c75c6e6f846cce50a722014c4b3bff92bcc7a7 /urpm/parallel_ka_run.pm | |
parent | cbcfd7a1b9bbafeedfd483ae511da8529982147a (diff) | |
download | urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar.gz urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar.bz2 urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.tar.xz urpmi-c19e3039a252f50b986a2e4b8e66817395f512ee.zip |
changed name of _() function to N()
use of perl_checker to create pot file
Diffstat (limited to 'urpm/parallel_ka_run.pm')
-rw-r--r-- | urpm/parallel_ka_run.pm | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/urpm/parallel_ka_run.pm b/urpm/parallel_ka_run.pm index 90a14f98..d80e292e 100644 --- a/urpm/parallel_ka_run.pm +++ b/urpm/parallel_ka_run.pm @@ -6,7 +6,7 @@ sub parallel_register_rpms { $urpm->{log}("parallel_ka_run: mput $parallel->{options} -- ".join(' ', @files)." $urpm->{cachedir}/rpms/"); system "mput", split(' ', $parallel->{options}), '--', @files, "$urpm->{cachedir}/rpms/"; - $? == 0 || $? == 256 or $urpm->{fatal}(1, _("mput failed, maybe a node is unreacheable")); + $? == 0 || $? == 256 or $urpm->{fatal}(1, N("mput failed, maybe a node is unreacheable")); #- keep trace of direct files. foreach (@files) { @@ -62,7 +62,7 @@ sub parallel_find_remove { } } } - close F or $urpm->{fatal}(1, _("rshp failed, maybe a node is unreacheable")); + close F or $urpm->{fatal}(1, N("rshp failed, maybe a node is unreacheable")); #- check base, which has been delayed until there. $options{callback_base} and %base_to_remove and $options{callback_base}->($urpm, keys %base_to_remove) @@ -71,7 +71,7 @@ sub parallel_find_remove { #- build error list contains all the error returned by each node. $urpm->{error_remove} = []; foreach (keys %bad_nodes) { - my $msg = _("on node %s", $_); + my $msg = N("on node %s", $_); foreach (@{$bad_nodes{$_}}) { push @{$urpm->{error_remove}}, "$msg, $_"; } @@ -88,7 +88,7 @@ sub parallel_resolve_dependencies { #- first propagate the synthesis file to all machine. $urpm->{log}("parallel_ka_run: mput $parallel->{options} -- '$synthesis' '$synthesis'"); system "mput $parallel->{options} -- '$synthesis' '$synthesis'"; - $? == 0 || $? == 256 or $urpm->{fatal}(1, _("mput failed, maybe a node is unreacheable")); + $? == 0 || $? == 256 or $urpm->{fatal}(1, N("mput failed, maybe a node is unreacheable")); $parallel->{synthesis} = $synthesis; #- compute command line of urpm? tools. @@ -160,7 +160,7 @@ sub parallel_resolve_dependencies { $state->{selected}{$pkg->id}{$node} = $_; } } - close F or $urpm->{fatal}(1, _("rshp failed, maybe a node is unreacheable")); + close F or $urpm->{fatal}(1, N("rshp failed, maybe a node is unreacheable")); #- check for internal error of resolution. $cont == 1 and die "internal distant urpmq error on choice not taken"; } while ($cont); @@ -175,7 +175,7 @@ sub parallel_install { $urpm->{log}("parallel_ka_run: mput $parallel->{options} -- ".join(' ', values %$install, values %$upgrade)." $urpm->{cachedir}/rpms/"); system "mput", split(' ', $parallel->{options}), '--', values %$install, values %$upgrade, "$urpm->{cachedir}/rpms/"; - $? == 0 || $? == 256 or $urpm->{fatal}(1, _("mput failed, maybe a node is unreacheable")); + $? == 0 || $? == 256 or $urpm->{fatal}(1, N("mput failed, maybe a node is unreacheable")); local (*F, $_); my ($node, %bad_nodes); @@ -189,16 +189,16 @@ sub parallel_install { /Installation failed/ and $bad_nodes{$node} = ''; /Installation is possible/ and delete $bad_nodes{$node}; } - close F or $urpm->{fatal}(1, _("rshp failed, maybe a node is unreacheable")); + close F or $urpm->{fatal}(1, N("rshp failed, maybe a node is unreacheable")); foreach (keys %{$parallel->{nodes}}) { exists $bad_nodes{$_} or next; - $urpm->{error}(_("Installation failed on node %s", $_) . ":\n" . $bad_nodes{$_}); + $urpm->{error}(N("Installation failed on node %s", $_) . ":\n" . $bad_nodes{$_}); } %bad_nodes and return; if ($options{test}) { - $urpm->{error}(_("Installation is possible")); + $urpm->{error}(N("Installation is possible")); 1; } else { my $line = $parallel->{line} . ($options{excludepath} ? " --excludepath '$options{excludepath}'" : ""); |