downloadkit/downloadkit.py
changeset 198 90e6dc719131
parent 197 04b0678959bf
child 199 a99c74c53f62
--- 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,