daca2-addons: fix scripts
This commit is contained in:
parent
153ac90663
commit
e5308a105a
|
@ -5,6 +5,7 @@ import pexpect
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
import time
|
import time
|
||||||
|
import sys
|
||||||
|
|
||||||
PASSWORD = ''
|
PASSWORD = ''
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
|
@ -12,6 +13,9 @@ if len(sys.argv) == 2:
|
||||||
|
|
||||||
# Upload file to sourceforge web server using scp
|
# Upload file to sourceforge web server using scp
|
||||||
def upload(file_to_upload, destination):
|
def upload(file_to_upload, destination):
|
||||||
|
if not os.path.isfile(file_to_upload):
|
||||||
|
return
|
||||||
|
|
||||||
try:
|
try:
|
||||||
child = pexpect.spawn(
|
child = pexpect.spawn(
|
||||||
'scp ' + file_to_upload + ' upload@trac.cppcheck.net:' + destination)
|
'scp ' + file_to_upload + ' upload@trac.cppcheck.net:' + destination)
|
||||||
|
@ -51,5 +55,5 @@ foldernum = 0
|
||||||
while True:
|
while True:
|
||||||
daca2(foldernum)
|
daca2(foldernum)
|
||||||
foldernum = foldernum + 1
|
foldernum = foldernum + 1
|
||||||
break
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue