]> arthur.barton.de Git - bup.git/commit
cmd/ftp: only import readline if necessary.
authorAvery Pennarun <apenwarr@gmail.com>
Fri, 9 Jul 2010 17:47:16 +0000 (13:47 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 9 Jul 2010 17:57:20 +0000 (13:57 -0400)
commitb4bacf59907b74206222ebd47871d5a5c2b1c51f
tree0a7481f486f8821a76aedc7250d0e5029a575a4e
parent53c48383f482ab6503486c76c729580e9b560f69
cmd/ftp: only import readline if necessary.

Apparently on some systems (Mandriva and Slackware at least), importing
the readline library can print some escape sequences to stdout, which screws
things up with the unit tests that run 'bup ftp "cat filename"' and expect
it to be the right data.

Thanks to Eduardo Kienetz for noticing and helping to track down the problem
since I couldn't reproduce it.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
cmd/ftp-cmd.py