Revision: 12385
          http://sourceforge.net/p/skim-app/code/12385
Author:   hofman
Date:     2021-06-29 09:09:14 +0000 (Tue, 29 Jun 2021)
Log Message:
-----------
Write full appcast to appcast file. Include channel description and title in 
right place.

Modified Paths:
--------------
    trunk/build_skim.py

Modified: trunk/build_skim.py
===================================================================
--- trunk/build_skim.py 2021-06-29 08:45:37 UTC (rev 12384)
+++ trunk/build_skim.py 2021-06-29 09:09:14 UTC (rev 12385)
@@ -460,12 +460,12 @@
     insert = -1
     start = -1
     end = -1
-    if appcastString.find("<title>Version " + newVersionString + "</title>") 
== -1:
-        insert = appcastString.find("<channel>")
-        start = newItemString.find("<channel>")
+    if len(appcastString) > 0 and appcastString.find("<title>Version " + 
newVersionString + "</title>") == -1:
+        insert = appcastString.find("<item>")
+        start = newItemString.find("<item>")
         end = newItemString.find("</item>")
     if insert != -1 and start != -1 and end != -1:
-        appcastString = appcastString[:insert+9] + 
newItemString[start+9:end+7] + appcastString[insert+9:]
+        appcastString = appcastString[:insert] + newItemString[start:end+8] + 
"        " + appcastString[insert:]
         appcastName = "skim.xml"
     else:
         appcastString = newItemString
@@ -473,7 +473,7 @@
     
     appcastPath = os.path.join(outputPath , appcastName)
     appcastFile = codecs.open(appcastPath, "w", "utf-8")
-    appcastFile.write(newItemString)
+    appcastFile.write(appcastString)
     appcastFile.close()
     
     # construct the ReadMe file

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Skim-app-commit mailing list
Skim-app-commit@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to