manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1342111 - /incubator/lcf/site/update-site.py
Date Thu, 24 May 2012 00:54:26 GMT
Author: kwright
Date: Thu May 24 00:54:25 2012
New Revision: 1342111

URL: http://svn.apache.org/viewvc?rev=1342111&view=rev
Log:
Debug the script

Modified:
    incubator/lcf/site/update-site.py

Modified: incubator/lcf/site/update-site.py
URL: http://svn.apache.org/viewvc/incubator/lcf/site/update-site.py?rev=1342111&r1=1342110&r2=1342111&view=diff
==============================================================================
--- incubator/lcf/site/update-site.py (original)
+++ incubator/lcf/site/update-site.py Thu May 24 00:54:25 2012
@@ -33,8 +33,7 @@ def site_merge(source_dir, target_dir):
                 target_dirname = os.path.join(root, dir)
                 source_dirname = os.path.join(source_dir, relative_dirname)
                 if os.path.exists(target_dirname):
-                    svn_result = svn_command(["status",source_dirname])
-                    if len(svn_result) > 0 and svn_result[0] == "?":
+                    if not os.path.exists(source_dirname):
                         print >> sys.stderr, "Deleting directory %s" % relative_dirname
                         svn_command(["remove",target_dirname])
                         deleted_dirs[relative_dirname] = True
@@ -44,8 +43,7 @@ def site_merge(source_dir, target_dir):
                 target_filename = os.path.join(root, file)
                 source_filename = os.path.join(source_dir, relative_filename)
                 if os.path.exists(target_filename):
-                    svn_result = svn_command(["status",source_filename])
-                    if len(svn_result) > 0 and svn_result[0] == "?":
+                    if not os.path.exists(source_filename):
                         print >> sys.stderr, "Deleting file %s" % relative_filename
                         svn_command(["remove",target_filename])
 



Mime
View raw message