Package: dput Version: 0.9.2.35 Severity: wishlist Tags: patch The attached patch adds support for 'progress_indicator' on SCP uploads by passing '-v' (or '-v -v') to scp based on the value of 'progress_indicator'.
Regards, -- ,''`. : :' : Chris Lamb `. `'` [EMAIL PROTECTED] `-
diff -urNd dput-0.9.2.35.orig/dput dput-0.9.2.35/dput --- dput-0.9.2.35.orig/dput 2008-09-27 13:01:05.000000000 +0100 +++ dput-0.9.2.35/dput 2008-09-27 13:03:02.000000000 +0100 @@ -872,7 +872,8 @@ if debug: print "D: ssh config options:\n "+'\n '.join(ssh_config_options) upload_methods[method](fqdn, login, incoming, \ - files_to_upload, debug, scp_compress, ssh_config_options) + files_to_upload, debug, scp_compress, ssh_config_options, + progress=progress) else: upload_methods[method](fqdn, login, incoming, \ files_to_upload, debug, 0, progress=progress) diff -urNd dput-0.9.2.35.orig/scp.py dput-0.9.2.35/scp.py --- dput-0.9.2.35.orig/scp.py 2008-09-27 13:01:05.000000000 +0100 +++ dput-0.9.2.35/scp.py 2008-09-27 13:02:29.000000000 +0100 @@ -15,6 +15,8 @@ command = ['scp', '-p'] if compress: command.append('-C') + for _ in xrange(min(progress, 2)): + command.append('-v') for anopt in ssh_config_options: command += ['-o', anopt] # TV-Note: Are these / Should these be escaped?
signature.asc
Description: PGP signature