[A-A-P-develop] Re: Caching of ftp connections
Brought to you by:
vimboss
From: Yakov L. <ql...@ne...> - 2004-03-08 00:19:25
|
Bram Moolenaar wrote: > Jacob Lerner complained about ftp download not working with Python 1.5. > ... A zip archive is > available here: http://www.a-a-p.org/files/aap-latest.zip Thanks, it works now under python 1.5.2. Only it bombs out if ~/.netrc does not contain an entry for the server (the ftp.vim.org), with ugly output. The output is below. Jacob P.S. Output when ~/.netrc does not contain the entry for the server: # aap -f ftp://ftp.vim.org/pub/vim/runtime/main.aap "main.aap" exists, overwrite? (y/n) y Aap: Attempting download of "ftp://ftp.vim.org/pub/vim/runtime/main.aap" Aap: Internal Error Traceback (innermost last): File "/usr/local/lib/aap/Exec-1.058/Main.py", line 101, in do_the_work work = doread(find_recipe) File "/usr/local/lib/aap/Exec-1.058/DoRead.py", line 158, in doread {"name" : dest}, {"interactive" : 1}, 0, errmsg = 1) File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 519, in remote_copy_move tmpfile, rtime = url_download(recdict, fname, destpath) File "/usr/local/lib/aap/Exec-1.058/Remote.py", line 203, in url_download ftp, msg = ftpConnect(fmach) File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 220, in ftpConnect res = n.authenticators(machname) File "/usr/local/lib/aap/Exec-1.058/aapnetrc.py", line 92, in authenticators elif 'default' in self.hosts: TypeError: 'in' or 'not in' needs sequence right argument Aap: Traceback (innermost last): File "/usr/local/lib/aap/Exec-1.058/Main.py", line 101, in do_the_work work = doread(find_recipe) File "/usr/local/lib/aap/Exec-1.058/DoRead.py", line 158, in doread {"name" : dest}, {"interactive" : 1}, 0, errmsg = 1) File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 519, in remote_copy_move tmpfile, rtime = url_download(recdict, fname, destpath) File "/usr/local/lib/aap/Exec-1.058/Remote.py", line 203, in url_download ftp, msg = ftpConnect(fmach) File "/usr/local/lib/aap/Exec-1.058/CopyMove.py", line 220, in ftpConnect res = n.authenticators(machname) File "/usr/local/lib/aap/Exec-1.058/aapnetrc.py", line 92, in authenticators elif 'default' in self.hosts: TypeError: 'in' or 'not in' needs sequence right argument |