HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #476

Ticket #476: changeset_r1291.diff

File changeset_r1291.diff, 1.8 KB (added by jrabbit, 5 years ago)
  • haikuporter/trunk/haikuporter

     
    10551055        print 'Package saved to: ' + zipFile 
    10561056         
    1057         if self.confKeys['SFTP_TARGET']: 
     1057        if self.options.upload: 
    10581058            if paramiko: 
    1059                 print 'Uploading package to %s' % self.confKeys['SFTP_TARGET'] 
    1060                 sendFile(zipfile) 
     1059                if self.confKeys['SFTP_TARGET']: 
     1060                    print 'Uploading package to %s' \ 
     1061                    % self.confKeys['SFTP_TARGET'] 
     1062                    sendFile(zipfile) 
     1063                else: 
     1064                    print 'Cannot read the SFTP options from ' + \ 
     1065                    'your haikuports.conf' 
    10611066            else: 
    10621067                self.prompt_installer(paramiko) 
    … …  
    11161121 
    11171122        print 'Archive saved to: ' + archiveFile 
     1123         
     1124        if self.options.upload: 
     1125            if paramiko: 
     1126                if self.confKeys['SFTP_TARGET']: 
     1127                    print 'Uploading archive to %s' \ 
     1128                    % self.confKeys['SFTP_TARGET'] 
     1129                    sendFile(zipfile) 
     1130                else: 
     1131                    print 'Cannot read the SFTP options from ' + \ 
     1132                    'your haikuports.conf' 
     1133            else: 
     1134                self.prompt_installer(paramiko) 
    11181135 
    11191136    def prompt_installer(self, name): 
    … …  
    15161533    help='Answer yes to all questions', 
    15171534    ) 
     1535parser.add_option( 
     1536    '-u', 
     1537    '--upload', 
     1538    action='store_true', 
     1539    dest='upload', 
     1540    default=False, 
     1541    help='used with -d or -z to upload the resulting file to a SFTP site', 
     1542    ) 
    15181543 
    15191544parser.add_option('--test', action='store_true', dest='test', 

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/