package ftp; # $Id$ use Net::FTP; use network; use log; my %hosts; 1; sub fromEnv() { #- now URLPREFIX is generated from what is given by mdk-stage1 which is only this 4 variables. $ENV{URLPREFIX} = "ftp://" . ($ENV{LOGIN} && ("$ENV{LOGIN}" . ($ENV{PASSWORD} && ":$ENV{PASSWORD}") . '@')) . "$ENV{HOST}/$ENV{PREFIX}"; @ENV{qw(HOST PREFIX LOGIN PASSWORD)}; } sub new { my ($host, $prefix, $login, $password) = @_; my @l = do { if ($hosts{"$host$prefix"}) { @{$hosts{"$host$prefix"}}; } else { my %options = (Passive => 1, Timeout => 60, Port => 21); $options{Firewall} = $ENV{PROXY} if $ENV{PROXY}; $options{Port} = $ENV{PROXYPORT} if $ENV{PROXYPORT}; unless ($login) { $login = 'anonymous'; $password = '-drakx@'; } my $ftp; foreach (1..10) { $ftp = Net::FTP->new(network::resolv($host), %options) or die; $ftp && $ftp->login($login, $password) and last; log::l("ftp login failed, sleeping before trying again"); sleep 5 * $_; } $ftp or die "unable to open ftp connection to $host"; $ftp->binary; $ftp->cwd($prefix); my @l = ($ftp, \ (my $retr = undef)); $hosts{"$host$prefix"} = \@l; @l; }}; wantarray ? @l : $l[0]; } sub getFile { my ($f, @para) = @_; $f eq 'XXX' and rewindGetFile(), return; #- special case to force closing connection. foreach (1..3) { my ($ftp, $retr) = new(@para ? @para : fromEnv); eval { $$retr->close if $$retr }; $@ and rewindGetFile(); #- in case Timeout got us on "->close" $$retr = $ftp->retr($f) and return $$retr; ($ftp->code == 550) and log::l("FTP: 550 file unavailable"), return; rewindGetFile(); log::l("ftp get failed, sleeping before trying again"); sleep 1; } } #-sub closeFiles() { #- #- close any existing connections #- foreach (values %hosts) { #- my $retr = $_->[1] if ref $_; #- $$retr->close if $$retr; #- undef $$retr; #- } #-} sub rewindGetFile() { #- close any existing connection. foreach (values %hosts) { my ($ftp, $retr) = @{$_ || []}; #- don't let Timeout kill us! eval { $$retr->close } if $$retr; eval { $ftp->close } if $ftp; } #- make sure to reconnect to server. %hosts = (); } K-10_2-update'>topic/MDK-10_2-update Mageia Installer and base platform for many utilitiesThierry Vignaud [tv]
summaryrefslogtreecommitdiffstats
path: root/perl-install/share/po/pt_BR.po
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2005-09-21 21:41:11 +0000
committerPablo Saratxaga <pablo@mandriva.com>2005-09-21 21:41:11 +0000
commite833e5453d35222f212f9b0ca9ebc92aa2f42313 (patch)
tree9302cbaf566273b1db160d5b3c369657dc274fc8 /perl-install/share/po/pt_BR.po
parentf54350b32ae9147c4061b2d35ab2972546141af6 (diff)
downloaddrakx-e833e5453d35222f212f9b0ca9ebc92aa2f42313.tar
drakx-e833e5453d35222f212f9b0ca9ebc92aa2f42313.tar.gz
drakx-e833e5453d35222f212f9b0ca9ebc92aa2f42313.tar.bz2
drakx-e833e5453d35222f212f9b0ca9ebc92aa2f42313.tar.xz
drakx-e833e5453d35222f212f9b0ca9ebc92aa2f42313.zip
updated pot file
Diffstat (limited to 'perl-install/share/po/pt_BR.po')
-rw-r--r--perl-install/share/po/pt_BR.po48
1 files changed, 27 insertions, 21 deletions
diff --git a/perl-install/share/po/pt_BR.po b/perl-install/share/po/pt_BR.po
index 079f3cc23..613f74194 100644
--- a/perl-install/share/po/pt_BR.po
+++ b/perl-install/share/po/pt_BR.po
@@ -8133,6 +8133,15 @@ msgstr ""
"_: teclado\n"
"Dvorak (US)"
+#: keyboard.pm:211
+#, c-format
+msgid ""
+"_: keyboard\n"
+"Dvorak (Esperanto)"
+msgstr ""
+"_: teclado\n"
+"Dvorak (Esperanto)"
+
#: keyboard.pm:215
#, c-format
msgid ""
@@ -8403,6 +8412,15 @@ msgstr ""
"_: teclado\n"
"Laociano"
+#: keyboard.pm:255
+#, c-format
+msgid ""
+"_: keyboard\n"
+"Lithuanian AZERTY (old)"
+msgstr ""
+"_: teclado\n"
+"Lituânio AZERTY (velho)"
+
#: keyboard.pm:261
#, c-format
msgid ""
@@ -8421,6 +8439,15 @@ msgstr ""
"_: teclado\n"
"Lituânio \"número de colunas\" QWERTY"
+#: keyboard.pm:259
+#, c-format
+msgid ""
+"_: keyboard\n"
+"Lithuanian \"phonetic\" QWERTY"
+msgstr ""
+"_: teclado\n"
+"Lituânio \"fonético\" QWERTY"
+
#: keyboard.pm:264
#, c-format
msgid ""
@@ -27376,27 +27403,6 @@ msgstr "Falha na instalação"
#~ msgstr "http://www.mandrivalinux.com/en/errata.php3"
#~ msgid ""
-#~ "_: keyboard\n"
-#~ "Dvorak (Esperanto)"
-#~ msgstr ""
-#~ "_: teclado\n"
-#~ "Dvorak (Esperanto)"
-
-#~ msgid ""
-#~ "_: keyboard\n"
-#~ "Lithuanian AZERTY (old)"
-#~ msgstr ""
-#~ "_: teclado\n"
-#~ "Lituânio AZERTY (velho)"
-
-#~ msgid ""
-#~ "_: keyboard\n"
-#~ "Lithuanian \"phonetic\" QWERTY"
-#~ msgstr ""
-#~ "_: teclado\n"
-#~ "Lituânio \"fonético\" QWERTY"
-
-#~ msgid ""
#~ "You can be warned when someone access to a service or tries to intrude "
#~ "into your computer.\n"
#~ "Please select which network activity should be watched."