#230 Use lftp instead of lftget for downloads

open
nobody
None
5
2009-03-31
2009-03-31
monipol
No

Fink is able to use lftpget to download files. However, if the output file name differs from the original URL file name, Fink falls back to curl because lftpget doesn’t allow for renaming files. It is possible to use "lftp -c get1 -o" instead to change the output file name; running lftp directly seems to be a better choice.

The command

lftpget

can be replaced by

lftp -c "set cmd:at-exit;set xfer:max-redirections 16;get1 -o $file"

"set cmd:verbose y;" adds verbosity and

"get1 -c" resumes an interrupted download.

Discussion