Commit 56c501b2 authored by Olivier SOLDANO's avatar Olivier SOLDANO

fix wrong sparkle:version format

the attribute sparkle:version was ill formed
(date in format %Y/%m/%d instead of %Y%m%d),
making new versions outdated during publishing
because of the lexicographic ordering in winsparkle.

Change-Id: Ieb8d10ce346c27d27dd1a82dddb05414d9e839ed
parent 63665cfc
......@@ -59,15 +59,16 @@ if __name__ == "__main__":
tree = ET.parse(sparkle_file)
channel = tree.find("channel")
attrib = {'url' : url,
'sparkle:version' : now.strftime("%Y/%m/%d"),
'sparkle:shortVersionString' : "nightly-" + now.strftime("%Y/%m/%d"),
'sparkle:version' : now.strftime("%Y%m%d"),
'sparkle:shortVersionString' : "nightly-" + now.strftime("%Y%m%d"),
'sparkle:os' : os,
'length' : length,
'type' : "application/octet-stream"
# remove all publications of the same day (but not same os)
for item in tree.findall(".//item"):
if sameDate(now_timestamp,item.find("pubDate")) and not\
if sameDate(now_timestamp, item.find("pubDate")) and not\
item.find("./enclosure[@sparkle:os='%s']" % os, namespace) is None:
......@@ -79,5 +80,3 @@ if __name__ == "__main__":
xml_out = open(sparkle_file,"wb")
xml_out.write(reparsed_doc.toprettyxml(indent=' ', newl='\n',encoding="utf-8"))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment