# HG changeset patch # User Shabe Razvi # Date 1268743964 0 # Node ID 90e6dc7191317123920a86ef7b3db1e9a2bda047 # Parent 04b0678959bfbe211fcaf927515d74a3bc11e5f0 version 0.15 - add --noarmv5 option to avoid armv5 binaries. using this with --nowinscw also avoids binaries_epoc.zip and binaries_epoc_sdk.zip. diff -r 04b0678959bf -r 90e6dc719131 downloadkit/downloadkit.py --- a/downloadkit/downloadkit.py Sat Mar 13 18:56:12 2010 +0000 +++ b/downloadkit/downloadkit.py Tue Mar 16 12:52:44 2010 +0000 @@ -26,7 +26,7 @@ import hashlib import xml.etree.ElementTree as ET -version = '0.14' +version = '0.15' user_agent = 'downloadkit.py script v' + version headers = { 'User-Agent' : user_agent } top_level_url = "https://developer.symbian.org" @@ -424,7 +424,10 @@ continue # no snapshots of Mercurial source thanks... if options.nowinscw and re.search(r"winscw", filename) : continue # no winscw emulator... - + if options.noarmv5 and re.search(r"armv5", filename) : + continue # no armv5 emulator... + if options.noarmv5 and options.nowinscw and re.search(r"binaries_epoc.zip|binaries_epoc_sdk", filename) : + continue # skip binaries_epoc and binaries_sdk ... if download_file(filename, downloadurl) != True : continue # download failed @@ -453,6 +456,8 @@ help="Don't download any of the source code available directly from Mercurial") parser.add_option("--nowinscw", action="store_true", dest="nowinscw", help="Don't download the winscw emulator") +parser.add_option("--noarmv5", action="store_true", dest="noarmv5", + help="Don't download the armv5 binaries") parser.add_option("--nounzip", action="store_true", dest="nounzip", help="Just download, don't unzip or delete any files") parser.add_option("--nodelete", action="store_true", dest="nodelete", @@ -471,6 +476,7 @@ dryrun=False, nosrc=False, nowinscw=False, + noarmv5=False, nounzip=False, nodelete=False, progress=False,