Ticket #476: changeset_r1291.diff
| File changeset_r1291.diff, 1.8 KB (added by jrabbit, 5 years ago) |
|---|
-
haikuporter/trunk/haikuporter
1055 1055 print 'Package saved to: ' + zipFile 1056 1056 1057 if self. confKeys['SFTP_TARGET']:1057 if self.options.upload: 1058 1058 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' 1061 1066 else: 1062 1067 self.prompt_installer(paramiko) … … 1116 1121 1117 1122 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) 1118 1135 1119 1136 def prompt_installer(self, name): … … 1516 1533 help='Answer yes to all questions', 1517 1534 ) 1535 parser.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 ) 1518 1543 1519 1544 parser.add_option('--test', action='store_true', dest='test',
