update for mediawiki 1.13 that insists on adding new lines

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5873 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2008-12-20 15:50:33 +00:00
parent 7d14a4d119
commit edfb62b946

View file

@ -408,7 +408,7 @@ def UpdateWiki(release_id):
post += '&su_data=' + urllib.quote(data)
post += '&su_summary=' + urllib.quote(summary)
if urllib.urlopen(UPDATE_URL, post).read() != 'success':
if urllib.urlopen(UPDATE_URL, post).read().strip() != 'success':
log('*** failed updating `%s` wiki page' % page)
print ' *** failed updating `%s` wiki page' % page