From e5308a105a7ae91db0054622b44d90ccc70ffb70 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 19 Aug 2015 15:02:09 +0200 Subject: [PATCH] daca2-addons: fix scripts --- tools/rundaca2-addons.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/rundaca2-addons.py b/tools/rundaca2-addons.py index 7f019ac37..12bd2ca76 100644 --- a/tools/rundaca2-addons.py +++ b/tools/rundaca2-addons.py @@ -5,6 +5,7 @@ import pexpect import os import shutil import time +import sys PASSWORD = '' if len(sys.argv) == 2: @@ -12,6 +13,9 @@ if len(sys.argv) == 2: # Upload file to sourceforge web server using scp def upload(file_to_upload, destination): + if not os.path.isfile(file_to_upload): + return + try: child = pexpect.spawn( 'scp ' + file_to_upload + ' upload@trac.cppcheck.net:' + destination) @@ -51,5 +55,5 @@ foldernum = 0 while True: daca2(foldernum) foldernum = foldernum + 1 - break +