Changeset 1002 for tools/make.py
- Timestamp:
- 2008-07-30 05:09:26 (5 months ago)
- Files:
-
- tools/make.py (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
tools/make.py
r1001 r1002 34 34 locales_headers = {} 35 35 locales_file = 'locales.tar.gz' 36 update_url = 'http://code.downthemall.net/nightly/update.rdf'37 36 38 37 xpi_file = 'downthemall.xpi' … … 48 47 49 48 def create(self, xpi_file): 50 global locales_url, locales_headers , update_url49 global locales_url, locales_headers 51 50 yield "preparing" 52 51 self.prepare() … … 61 60 if self.opts.nightly: 62 61 yield "nightlifying" 63 self.nightlify( update_url)62 self.nightlify() 64 63 if self.opts.extid: 65 64 yield "setting the extension id" … … 122 121 123 122 124 def nightlify(self , update_url):123 def nightlify(self): 125 124 'open' 126 125 rdf = xml_open('%s/install.rdf' % self.opts.exportTo) … … 136 135 node = rdf.getElementsByTagNameNS(NS_EM, 'aboutURL')[0] 137 136 u = rdf.createElementNS(NS_EM, 'em:updateURL') 138 u.appendChild(rdf.createTextNode( update_url))137 u.appendChild(rdf.createTextNode(self.opts.updateURL)) 139 138 node.parentNode.insertBefore(u, node) 140 139 … … 302 301 ) 303 302 parser.add_option( 303 '--updateURL', 304 dest='updateURL', 305 help='The update url of the nightly build', 306 type="string" 307 ) 308 parser.add_option( 304 309 '--release', 305 310 dest='release', … … 348 353 args = ['trunk'] 349 354 355 if opts.nightly and not opts.updateURL: 356 parser.error("when building nightlies you must provide an updateURL") 357 350 358 opts.branch, = args 351 359
