manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1561405 - /manifoldcf/release-scripts/create_site_branch.py
Date Sat, 25 Jan 2014 21:51:22 GMT
Author: kwright
Date: Sat Jan 25 21:51:22 2014
New Revision: 1561405

URL: http://svn.apache.org/r1561405
Log:
More debugging

Modified:
    manifoldcf/release-scripts/create_site_branch.py

Modified: manifoldcf/release-scripts/create_site_branch.py
URL: http://svn.apache.org/viewvc/manifoldcf/release-scripts/create_site_branch.py?rev=1561405&r1=1561404&r2=1561405&view=diff
==============================================================================
--- manifoldcf/release-scripts/create_site_branch.py (original)
+++ manifoldcf/release-scripts/create_site_branch.py Sat Jan 25 21:51:22 2014
@@ -122,7 +122,6 @@ class TagScanner:
 
     def accept_character( self, char ):
         uchar = unicode(char)
-        print uchar
         if self.state == IN_BODY:
             if uchar == u'<':
                 self.state = IN_BODY_SEEN_LEFTANGLE
@@ -351,6 +350,8 @@ class PomAction(HierarchicalAction):
             self.replace = False
 
     def map_body( self, body_text ):
+        if self.accumulator != None:
+            self.accumulator += body_text
         if self.replace:
             return self.new_version
         return body_text
@@ -377,6 +378,10 @@ def fix_pom_xml(pom_file_path, pom_versi
     finally:
         fd.close()
 
+    # Remove old file and rename temp file
+    os.unlink(pom_file_path)
+    os.rename(temp_file, pom_file_path)
+
 def update_poms(root_directory, pom_version, root_parent=True):
     """ Update all poms in a project """
     dirs = fix_pom_xml( "%s/pom.xml" % root_directory, pom_version, root_parent )



Mime
View raw message