File tree 3 files changed +13
-20
lines changed
3 files changed +13
-20
lines changed Original file line number Diff line number Diff line change 1291
1291
<property name =" cursorPosition" >
1292
1292
<number >36</number >
1293
1293
</property >
1294
- <property name =" placeholderText" >
1295
- <string notr =" true" />
1296
- </property >
1297
1294
</widget >
1298
1295
<widget class =" QLineEdit" name =" mxfKeyEdit" >
1299
1296
<property name =" enabled" >
1336
1333
<property name =" cursorPosition" >
1337
1334
<number >32</number >
1338
1335
</property >
1339
- <property name =" placeholderText" >
1340
- <string notr =" true" />
1341
- </property >
1342
1336
</widget >
1343
1337
<widget class =" QCheckBox" name =" mxfEncryptionCheckBox" >
1344
1338
<property name =" geometry" >
Original file line number Diff line number Diff line change 6
6
import hashlib
7
7
import os
8
8
import re
9
+ import sys
9
10
10
11
11
12
class BinTray (object ):
@@ -203,13 +204,20 @@ def upload(self):
203
204
bintray = BinTray ()
204
205
bintray .upload (self .downloaded_files )
205
206
207
+ package = None
208
+ if len (sys .argv ) > 1 :
209
+ package = sys .argv [1 ]
210
+
206
211
print '---------------'
207
212
print 'OpenDCP Publish'
208
213
print '---------------'
209
214
p = Publish ()
210
215
211
- print 'Downloading OpenDCP files from build.opensuse.org'
212
- p .download ()
216
+ if not package :
217
+ print 'Downloading OpenDCP files from build.opensuse.org'
218
+ p .download ()
219
+ else :
220
+ p .downloaded_files = [package ]
213
221
214
222
print '\n Uploading OpenDCP files to bintray.com'
215
223
p .upload ()
Original file line number Diff line number Diff line change @@ -46,22 +46,13 @@ ENDIF()
46
46
#-----------------------------------------------------------------------------
47
47
48
48
#--google parameters----------------------------------------------------------
49
- SET (UPLOADER ${PROJECT_SOURCE_DIR} /scripts/googlecode_upload.py)
50
- SET (GOOGLE_PROJECT ${PROJECT_NAME} )
51
-
52
- SET (SUMMARY "OpenDCP ${OPENDCP_VERSION} ${SYSTEM_STRING} " )
49
+ SET (UPLOADER ${PROJECT_SOURCE_DIR} /scripts/publish.py)
53
50
SET (UPLOAD_FILE ${PROJECT_BINARY_DIR} /${PACKAGE_FILE_NAME} )
54
- SET (CONFIG_FILE "$ENV{HOME} /.opendcp/google.txt" )
55
- IF (EXISTS ${CONFIG_FILE} )
56
- FILE (READ ${CONFIG_FILE} PASSWORD)
57
- STRING (REGEX REPLACE "\n " "" PASSWORD "${PASSWORD} " )
58
- SET (PASSWORD "--password=${PASSWORD} " )
59
- ENDIF ()
60
51
#-----------------------------------------------------------------------------
61
52
62
53
#--upload target--------------------------------------------------------------
63
- MESSAGE (STATUS "${UPLOADER} -s \" ${SUMMARY} \" -p \" ${GOOGLE_PROJECT} \" -u \" ${USER} \" ${PASSWORD} -l \" ${LABELS} \" ${UPLOAD_FILE} " )
54
+ MESSAGE (STATUS "${UPLOADER} ${UPLOAD_FILE} " )
64
55
ADD_CUSTOM_TARGET (upload
65
- COMMAND ${UPLOADER} -s " ${SUMMARY} " -p " ${GOOGLE_PROJECT} " -u " ${USER} " ${PASSWORD} -l " ${LABELS} " ${UPLOAD_FILE}
56
+ COMMAND ${UPLOADER} ${UPLOAD_FILE}
66
57
)
67
58
#-----------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments