# HG changeset patch # User William Roberts # Date 1282910357 -3600 # Node ID 150026b6d3e6755b3d2216ae8dd535ff078d31a3 # Parent 73890f073898d0ba3be59b66ed3c4ebebcc7947b v0.20 - change to developer-secure.symbian.org, to fix Bug 3627 Also move the point at which downloadpage.html is saved, in order to get all of it for debugging diff -r 73890f073898 -r 150026b6d3e6 downloadkit/downloadkit.py --- a/downloadkit/downloadkit.py Fri Jul 30 17:06:23 2010 +0100 +++ b/downloadkit/downloadkit.py Fri Aug 27 12:59:17 2010 +0100 @@ -26,10 +26,10 @@ import hashlib import xml.etree.ElementTree as ET -version = '0.19' +version = '0.20' user_agent = 'downloadkit.py script v' + version headers = { 'User-Agent' : user_agent } -top_level_url = "https://developer.symbian.org" +top_level_url = "https://developer-secure.symbian.org" passman = urllib2.HTTPPasswordMgrWithDefaultRealm() # not relevant for live Symbian website download_list = [] failure_list = [] @@ -434,7 +434,7 @@ global options if not options.publicity: return - reporting_url = "http://developer.symbian.org/downloadkit_report/%s/%s/args=" % (version, what) + reporting_url = "http://developer-secure.symbian.org/downloadkit_report/%s/%s/args=" % (version, what) if options.dryrun: reporting_url += "+dryrun" if options.nosrc: @@ -482,6 +482,11 @@ response = urllib2.urlopen(req) doc=response.read() + if options.debug: + f = open("downloadpage.html","w") + print >>f, doc + f.close() + # BeatifulSoup chokes on some javascript, so we cut away everything before the try: bodystart=doc.find('') @@ -489,11 +494,6 @@ except: pass - if options.debug: - f = open("downloadpage.html","w") - print >>f, doc - f.close() - soup=BeautifulSoup(doc) # check that this is the right version @@ -595,7 +595,7 @@ progress=False, username='', password='', - webhost = 'developer.symbian.org', + webhost = 'developer-secure.symbian.org', resume=True, publicity=True, debug=False