]> git.pld-linux.org Git - packages/lftp.git/blob - lftp-git.patch
9a64799e20acc8cec73989cb4b2b3417c11f8776
[packages/lftp.git] / lftp-git.patch
1 diff --git a/doc/lftp.1 b/doc/lftp.1
2 index 2123b2c..6da6440 100644
3 --- a/doc/lftp.1
4 +++ b/doc/lftp.1
5 @@ -1749,8 +1749,8 @@ can try to set net:socket-buffer to relatively small value to avoid this.
6  limit accumulating of unused limit-total-rate. 0 means twice of limit-total-rate.
7  .TP
8  .BR net:max-retries \ (number)
9 -the maximum number of sequential retries of an operation without success.
10 -0 means unlimited.
11 +the maximum number of sequential tries of an operation without success.
12 +0 means unlimited. 1 means no retries.
13  .TP
14  .BR net:no-proxy \ (string)
15  contains comma separated list of domains for which proxy should not be used.
16 diff --git a/po/cs.po b/po/cs.po
17 index 62b572c..9ef370c 100644
18 --- a/po/cs.po
19 +++ b/po/cs.po
20 @@ -1,7 +1,7 @@
21  # Czech translation of lftp.
22  # Copyright (C) 2009 Alexander V. Lukyanov <lav@yars.free.net>
23  # This file is distributed under the same license as the lftp package.
24 -# Petr Pisar <petr.pisar@atlas.cz>, 2009, 2010, 2011, 2012.
25 +# Petr Pisar <petr.pisar@atlas.cz>, 2009, 2010, 2011, 2012, 2013.
26  #
27  # handshake → dojednání (spojení)
28  # option → volba
29 @@ -12,10 +12,10 @@
30  #
31  msgid ""
32  msgstr ""
33 -"Project-Id-Version: lftp 4.4.0\n"
34 +"Project-Id-Version: lftp 4.4.6\n"
35  "Report-Msgid-Bugs-To: lftp-bugs@lftp.yar.ru\n"
36  "POT-Creation-Date: 2013-05-17 14:34+0400\n"
37 -"PO-Revision-Date: 2012-09-30 20:40+0200\n"
38 +"PO-Revision-Date: 2013-05-21 19:42+0200\n"
39  "Last-Translator: Petr Pisar <petr.pisar@atlas.cz>\n"
40  "Language-Team: Czech <translation-team-cs@lists.sourceforge.net>\n"
41  "Language: cs\n"
42 @@ -1050,7 +1050,6 @@ msgid "[re]cls [opts] [path/][pattern]"
43  msgstr "[re]cls [volby] [cesta/][vzor]"
44  
45  #: src/commands.cc:164
46 -#, fuzzy
47  msgid ""
48  "List remote files. You can redirect output of this command to file\n"
49  "or via pipe to external command.\n"
50 @@ -1094,6 +1093,7 @@ msgstr ""
51  "nebo přes rouru do vnějšího příkazu.\n"
52  "\n"
53  " -1                   – jednosloupcový výstup\n"
54 +" -a, --all            - zobrazí tečkové soubory\n"
55  " -B, --basename       – ukáže jen názvy souborů bez cesty\n"
56  "     --block-size=VEL – použije bloky po VEL bajtech\n"
57  " -d, --directory      – vypíše záznamy adresářů namísto jejich obsahu\n"
58 @@ -1226,7 +1226,6 @@ msgid "get [OPTS] <rfile> [-o <lfile>]"
59  msgstr "get [VOLBY] <vzdálený_soubor> [-o <místní_soubor>]"
60  
61  #: src/commands.cc:250
62 -#, fuzzy
63  msgid ""
64  "Retrieve remote file <rfile> and store it to local file <lfile>.\n"
65  " -o <lfile> specifies local file name (default - basename of rfile)\n"
66 @@ -1239,7 +1238,7 @@ msgstr ""
67  " -o <místní_soubor>\n"
68  "     určí název místního souboru (implicitně je odvozen ze "
69  "vzdáleného_souboru)\n"
70 -" -c  pokračuje v nedokončeném stahování, reget\n"
71 +" -c  pokračuje v nedokončeném stahování, obnoví přenos\n"
72  " -E  po úspěšném přenosu vzdálené soubory smaže\n"
73  " -a  použije režim ASCII (implicitní je binární)\n"
74  " -O <základ>\n"
75 @@ -1276,11 +1275,12 @@ msgid "Print help for command <cmd>, or list of available commands\n"
76  msgstr "Vypíše nápovědu k <příkazu>, nebo vypíše všechny dostupné příkazy\n"
77  
78  #: src/commands.cc:269
79 -#, fuzzy
80  msgid ""
81  "List running jobs. -v means verbose, several -v can be specified.\n"
82  "If <job_no> is specified, only list a job with that number.\n"
83 -msgstr "Vypíše seznam běžících úloh. -v znamená podrobně, lze zadat více -v.\n"
84 +msgstr ""
85 +"Vypíše seznam běžících úloh. -v znamená podrobně, lze zadat více -v.\n"
86 +"Je-li zadáno <číslo_úlohy>, vypíše pouze úlohu s tímto číslem.\n"
87  
88  #: src/commands.cc:271
89  msgid "kill all|<job_no>"
90 @@ -1361,7 +1361,6 @@ msgid "mget [OPTS] <files>"
91  msgstr "mget [VOLBY] <soubory>"
92  
93  #: src/commands.cc:299
94 -#, fuzzy
95  msgid ""
96  "Gets selected files with expanded wildcards\n"
97  " -c  continue, resume transfer\n"
98 @@ -1372,7 +1371,7 @@ msgid ""
99  " -O <base> specifies base directory or URL where files should be placed\n"
100  msgstr ""
101  "Získá soubory vybrané expanzí žolíkových znaků\n"
102 -" -c  pokračuje v nedokončeném stahování, reget\n"
103 +" -c  pokračuje v nedokončeném stahování, obnoví přenos\n"
104  " -d  vytvoří adresáře stejné jako jsou v názvech souborů a soubory umístí "
105  "do\n"
106  "     nich namísto do pracovního adresáře\n"
107 diff --git a/po/es.po b/po/es.po
108 index 27be471..8794a44 100644
109 --- a/po/es.po
110 +++ b/po/es.po
111 @@ -13,7 +13,7 @@ msgstr ""
112  "Language-Team: Spanish <es@li.org>\n"
113  "Language: es\n"
114  "MIME-Version: 1.0\n"
115 -"Content-Type: text/plain; charset=ISO-8859-1\n"
116 +"Content-Type: text/plain; charset=UTF-8\n"
117  "Content-Transfer-Encoding: 8-bit\n"
118  
119  #: lib/argmatch.c:133
120 diff --git a/po/it.po b/po/it.po
121 index 69aff39..2ffae57 100644
122 --- a/po/it.po
123 +++ b/po/it.po
124 @@ -12,7 +12,7 @@ msgstr ""
125  "Language-Team: Italian <it@li.org>\n"
126  "Language: it\n"
127  "MIME-Version: 1.0\n"
128 -"Content-Type: text/plain; charset=ISO-8859-1\n"
129 +"Content-Type: text/plain; charset=UTF-8\n"
130  "Content-Transfer-Encoding: 8-bit\n"
131  
132  #: lib/argmatch.c:133
133 diff --git a/po/pt_BR.po b/po/pt_BR.po
134 index 95e8e3d..5d1c02d 100644
135 --- a/po/pt_BR.po
136 +++ b/po/pt_BR.po
137 @@ -11,7 +11,7 @@ msgstr ""
138  "Language-Team: pt_BR <pt@li.org>\n"
139  "Language: pt_BR\n"
140  "MIME-Version: 1.0\n"
141 -"Content-Type: text/plain; charset=ISO-8859-1\n"
142 +"Content-Type: text/plain; charset=UTF-8\n"
143  "Content-Transfer-Encoding: 8-bit\n"
144  
145  #: lib/argmatch.c:133
146 diff --git a/src/ChangeLog b/src/ChangeLog
147 index a381272..e5e7c3f 100644
148 --- a/src/ChangeLog
149 +++ b/src/ChangeLog
150 @@ -1,3 +1,14 @@
151 +2013-05-21  Alexander V. Lukyanov <lav@yars.free.net>
152 +
153 +       * FileCopy.cc: set size=NO_SIZE when the size could not be found.
154 +       * FileSet.cc: allow info merging for files with the same basename.
155 +       * Fish.cc: fixed file correption and garbage logging by requiring
156 +         the file to have a size; improve error handling.
157 +
158 +2013-05-20  Alexander V. Lukyanov <lav@yars.free.net>
159 +
160 +       * Fish.cc: disconnect in more cases on Close.
161 +
162  2013-05-13  Alexander V. Lukyanov <lav@yars.free.net>
163  
164         * TorrentTracker.cc, TorrentTracker.h: use xstring for InfoHash and
165 diff --git a/src/FileCopy.cc b/src/FileCopy.cc
166 index 062b140..d0241c4 100644
167 --- a/src/FileCopy.cc
168 +++ b/src/FileCopy.cc
169 @@ -805,8 +805,7 @@ int FileCopyPeerFA::Do()
170          return MOVED;
171        }
172        FileInfo *fi=info[0];
173 -      if(fi->Has(fi->SIZE))
174 -        SetSize(fi->size);
175 +      SetSize(fi->size);
176        if(fi->Has(fi->DATE))
177          SetDate(fi->date);
178        session->Close();
179 diff --git a/src/FileSet.cc b/src/FileSet.cc
180 index a2f5255..49c9df4 100644
181 --- a/src/FileSet.cc
182 +++ b/src/FileSet.cc
183 @@ -48,7 +48,7 @@
184  
185  void  FileInfo::Merge(const FileInfo& f)
186  {
187 -   if(strcmp(name,f.name))
188 +   if(strcmp(basename_ptr(name),basename_ptr(f.name)))
189        return;
190  // int sim=defined&f.defined;
191     int dif=(~defined)&f.defined;
192 diff --git a/src/Fish.cc b/src/Fish.cc
193 index f467781..99770a4 100644
194 --- a/src/Fish.cc
195 +++ b/src/Fish.cc
196 @@ -341,10 +341,13 @@ void Fish::Close()
197     switch(state)
198     {
199     case(DISCONNECTED):
200 -   case(WAITING):
201     case(CONNECTED):
202     case(DONE):
203        break;
204 +   case(WAITING):
205 +      if(mode==STORE || mode==RETRIEVE)
206 +        Disconnect();
207 +      break;
208     case(FILE_SEND):
209        if(!RespQueueIsEmpty())
210          Disconnect();
211 @@ -566,6 +569,10 @@ int Fish::HandleReplies()
212          Disconnect();
213          return MOVED;
214        }
215 +      if(entity_size!=NO_SIZE && real_pos<entity_size)
216 +        return m;
217 +      if(entity_size==NO_SIZE)
218 +        return m;
219     }
220     recv_buf->Put(pty_recv_buf->Get(),pty_recv_buf->Size()); // join the messages.
221     pty_recv_buf->Skip(pty_recv_buf->Size());
222 @@ -616,8 +623,10 @@ int Fish::HandleReplies()
223     {
224        if(message==0)
225          message.set(line);
226 -      else
227 -        message.vappend("\n",line.get(),NULL);
228 +      else {
229 +        message.append('\n');
230 +        message.append(line);
231 +      }
232        return m;
233     }
234  
235 @@ -677,7 +686,7 @@ int Fish::HandleReplies()
236        else if(message && message[0]!='#')
237        {
238          FileInfo *fi=FileInfo::parse_ls_line(message,"GMT");
239 -        if(!fi)
240 +        if(!fi || !strncmp(message,"ls: ",4))
241          {
242             SetError(NO_FILE,message);
243             break;
244 @@ -757,14 +766,14 @@ void Fish::CloseExpectQueue()
245        case EXPECT_PWD:
246        case EXPECT_CWD:
247          break;
248 -      case EXPECT_RETR_INFO:
249        case EXPECT_INFO:
250 -      case EXPECT_RETR:
251        case EXPECT_DIR:
252 -      case EXPECT_QUOTE:
253        case EXPECT_DEFAULT:
254          RespQueue[i]=EXPECT_IGNORE;
255          break;
256 +      case EXPECT_QUOTE:
257 +      case EXPECT_RETR_INFO:
258 +      case EXPECT_RETR:
259        case EXPECT_STOR_PRELIMINARY:
260        case EXPECT_STOR:
261          Disconnect();
This page took 0.034386 seconds and 2 git commands to generate.