Revision: 12263
http://sourceforge.net/p/skim-app/code/12263
Author: hofman
Date: 2021-04-06 09:54:44 +0000 (Tue, 06 Apr 2021)
Log Message:
-----------
Insert new appcast item at the beginning rather than the end
Modified Paths:
--------------
trunk/build_skim.py
Modified: trunk/build_skim.py
===================================================================
--- trunk/build_skim.py 2021-04-06 09:22:46 UTC (rev 12262)
+++ trunk/build_skim.py 2021-04-06 09:54:44 UTC (rev 12263)
@@ -418,7 +418,7 @@
assert newNodes is not None, error
# insert a copy of the new node
- parentChannel.addChild_(newNodes.lastObject().copy())
+ parentChannel.insertChild_atIndex_(newNodes.lastObject().copy(), 0)
# write to user Desktop
appcastPath = os.path.join(outputPath , "skim.xml")
@@ -425,11 +425,13 @@
# write to NSData, since pretty printing didn't work with
NSXMLDocument writing
oldDoc.XMLDataWithOptions_(NSXMLNodePrettyPrint).writeToFile_atomically_(appcastPath,
True)
-
- appcastPath = os.path.join(outputPath , "Skim-" + newVersionString +
".xml")
- appcastFile = open(appcastPath, "w")
- appcastFile.write(newItemString)
- appcastFile.close()
+
+ else:
+
+ appcastPath = os.path.join(outputPath , "Skim-" + newVersionString +
".xml")
+ appcastFile = open(appcastPath, "w")
+ appcastFile.write(newItemString)
+ appcastFile.close()
def get_options():
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit