provide a means to pass additional commands to lftp (e.g. "set net:limit-rate 50000")
authorGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 12 Jan 2010 14:55:32 +0000 (15:55 +0100)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 12 Jan 2010 14:55:32 +0000 (15:55 +0100)
bin/booh

index 69ec9f6956b77a0dc7c9feaa2bf830bfc1800841..f84be524e34916a7b13d35d30444e19c1922a047 100644 (file)
--- a/bin/booh
+++ b/bin/booh
@@ -4235,6 +4235,13 @@ def perform_remote_synchronization(url, detail_label, progressbar_window, dialog
         gtk_thread_protect {
             detail_label.set_markup("<i>" + utf8(_("Logging into remote site...")) + "</i>")
         }
         gtk_thread_protect {
             detail_label.set_markup("<i>" + utf8(_("Logging into remote site...")) + "</i>")
         }
+        lftp_additionals = $config['lftp-additionals']
+        if lftp_additionals
+            msg 3, "Adding lftp additionals:\n" + lftp_additionals
+            write.puts(lftp_additionals)
+        else
+            msg 3, "No lftp additionals"
+        end
         write.puts("set net:max-retries 1")
         write.puts("set cmd:fail-exit true")
         write.puts("open " + url)
         write.puts("set net:max-retries 1")
         write.puts("set cmd:fail-exit true")
         write.puts("open " + url)