comparison gub/buildrunner.py @ 5457:f65d6e563f9f

/GUB: slew of bootstrap/root fixes.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Thu, 13 Aug 2009 14:59:39 +0200
parents 4c5efe7c96e7
children df03d0971b5d
comparison
equal deleted inserted replaced
5456:1a2d6ad5a556 5457:f65d6e563f9f
246 spec.build (self.options, skip) 246 spec.build (self.options, skip)
247 spec.connect_command_runner (None) 247 spec.connect_command_runner (None)
248 deferred_runner.execute_deferred_commands () 248 deferred_runner.execute_deferred_commands ()
249 checksum_file = spec.expand ('%(checksum_file)s') 249 checksum_file = spec.expand ('%(checksum_file)s')
250 if checksum_file: 250 if checksum_file:
251 if len (self.checksums[spec_name].split ('\n')) < 5: 251 if 0: #len (self.checksums[spec_name].split ('\n')) < 5:
252 # Sanity check. This can't be right. Do not 252 # Sanity check. This can't be right. Do not
253 # overwrite precious [possibly correct] checksum. 253 # overwrite precious [possibly correct] checksum.
254 raise Exception ('BROKEN CHECKSUM:' + self.checksums[spec_name]) 254 raise Exception ('BROKEN CHECKSUM:' + self.checksums[spec_name])
255 open (checksum_file, 'w').write (self.checksums[spec_name]) 255 open (checksum_file, 'w').write (self.checksums[spec_name])
256 #spec.set_done ('') 256 #spec.set_done ('')
308 if outdated_installed: 308 if outdated_installed:
309 platform = self.settings.platform 309 platform = self.settings.platform
310 outdated_str = (' '.join (outdated_installed) 310 outdated_str = (' '.join (outdated_installed)
311 .replace (misc.with_platform ('', platform), '')) 311 .replace (misc.with_platform ('', platform), ''))
312 logging.default_logger.write_log ('removing outdated[%(platform)s]: %(outdated_str)s\n' % locals (), 'stage') 312 logging.default_logger.write_log ('removing outdated[%(platform)s]: %(outdated_str)s\n' % locals (), 'stage')
313 self.uninstall_specs (outdated_installed) 313 if not 'BOOTSTRAP' in os.environ.keys ():
314 self.uninstall_specs (outdated_installed)
314 global target 315 global target
315 for spec_name in deps: 316 for spec_name in deps:
316 target = spec_name 317 target = spec_name
317 self.spec_build (spec_name) 318 self.spec_build (spec_name)
318 target = None 319 target = None