Diff of /trunk/cforge/cforge/Package/CFORGE/Scripts/action.svn.commit.py [r54] .. [r55]  Maximize  Restore

Switch to side-by-side view

--- a/trunk/cforge/cforge/Package/CFORGE/Scripts/action.svn.commit.py
+++ b/trunk/cforge/cforge/Package/CFORGE/Scripts/action.svn.commit.py
@@ -29,20 +29,24 @@
     req.save = True # Optional
 
 
-svn.auth_username_password += set_username
 # checkout plain SVN files
 pysvn.svn_commit_non_codesys(username, password, path, message)
 
-# iterate over all projects and libraries
-for root, dirs, files in os.walk(path):
-    for file in files:
-        if file.endswith(".project") or file.endswith(".library"):
-			filepath = os.path.join(root, file)
-			proj = projects.open(filepath)
-			proj.svn.commit(message)
-			proj.save()
-			proj.close()
-
+try:
+    svn.auth_username_password += set_username
+    # iterate over all projects and libraries
+    for root, dirs, files in os.walk(path):
+        for file in files:
+            if file.endswith(".project") or file.endswith(".library"):
+		filepath = os.path.join(root, file)
+		proj = projects.open(filepath)
+		proj.svn.commit(message)
+		proj.save()
+		proj.close()
+except:
+    print "Seems like the CODESYS SVN package is missing. Checked out only plain files and no CODESYS projects."
+    pass
+    
 system.exit()