Re: Caching of ftp connections
Bram Moolenaar <[email protected]> Sun, 07 Mar 2004 13:08:01 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Yakov Lerner wrote:
> I tried aap-latest.zip with python 2.2.2 under cygwin.
> I got error:
> > 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: Error in recipe: Cannot download
> "ftp://ftp.vim.org/pub/vim/runtime/main.aap" to "main.aap":
> [Errno 2] No such file or directory: '/home/Administrator/.netrc'
>
> I did 'touch ~/.netrc' and aap proceeded without errors. Is it possible
> to avoid errors if ~/.netrc is not present ?
That was the intention. It appears this problem was already present,
but it wasn't noticed, because the code was only used for uploading
until now. The fix is simple:
*** CopyMove.py~ Thu Mar 4 19:38:26 2004
--- CopyMove.py Sun Mar 7 12:56:15 2004
***************
*** 222,228 ****
user = ''
else:
user, acct, passwd = res
! except aapnetrc.NetrcParseError, e:
pass
# Try to open the connection to the ftp server.
--- 222,228 ----
user = ''
else:
user, acct, passwd = res
! except (IOError, aapnetrc.NetrcParseError), e:
pass
# Try to open the connection to the ftp server.
--
"Software is like sex... it's better when it's free."
-- Linus Torvalds, initiator of the free Linux OS
Makes me wonder what FSF stands for...?
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click