~ubuntu-branches/ubuntu/maverick/dput/maverick

« back to all changes in this revision

Viewing changes to dput

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-01-04 19:37:45 UTC
  • mfrom: (1.2.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090104193745-4tg94wzkpy3kj0ik
Tags: 0.9.2.37ubuntu1
* Merge from debian unstable, remaining changes: LP: #313718
  + sftp.py: Support for uploads via sftp transport
  + dput.cf:
    - set 'default_main_host = ubuntu'
    - set 'progress_indicator = 2'
  + dput:
    - Recognize 0ubuntu1 as a debian version that requires
      orig.tar.gz to be included in the upload.
  + debian/control: Added suggests on bzr (as we use the bzrlib.transport)
  + debian/rules: Updated to install sftp.py
  + dput:
    - Added ability to pass an argument to the host configuration by placing
      a colon after the hostname. The variable with the same name of the host
      will be replaced with the string following the colon. 
    - Properly check to see if config stanza exists for host. 
  + dput.cf: Updated ppa stanza to make use of argument support.
  + dput.cf.5: Updated to note support for sftp transport and host args
  + dput.1: Updated to document host argument feature and sftp support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
sys.path.insert(0,'/usr/share/dput/helper')
27
27
import dputhelper
28
28
 
29
 
dput_version = "dput 0.9.2.36"
 
29
dput_version = "dput 0.9.2.37"
30
30
 
31
31
config = None
32
32
upload_methods = {}
393
393
 
394
394
    for file in files_to_upload:
395
395
        entry_for_logfile = 'Successfully uploaded ' + os.path.basename(file) + \
396
 
            ' to ' + host + ' of ' + fqdn + '.\n'
 
396
            ' to ' + fqdn + ' for ' + host + '.\n'
397
397
        logfile_fd.write(entry_for_logfile)
398
398
    logfile_fd.close()
399
399
        
847
847
            else:
848
848
                first_char = '/'
849
849
            incoming += first_char + 'DELAYED/' + delay_upload + '-day'
 
850
            delayed = ' [DELAYED/' + delay_upload + ']'
 
851
        else:
 
852
            delayed = ''
850
853
 
851
854
        # Do the actual upload
852
855
        if not simulate:
853
 
            print "Uploading to %s (via %s to %s):"%(host,method,fqdn)
 
856
            print "Uploading to %s%s (via %s to %s):"%(host,delayed,method,fqdn)
854
857
            if debug:
855
858
                print "D: FQDN: %s" % fqdn
856
859
                print "D: Login: %s" % login