def _update_s2e_sources(self):
"""
Update all of the S2E repositories with repo.
"""
repo = sh.Command(self.install_path('bin', 'repo'))
# cd into the S2E source directory
orig_dir = os.getcwd()
os.chdir(self.source_path('s2e'))
try:
logger.info('Updating S2E')
repo.sync(_out=sys.stdout, _err=sys.stderr, _fg=True)
except ErrorReturnCode as e:
raise CommandError(e)
finally:
# Change back to the original directory
os.chdir(orig_dir)
# Success!
logger.success('Updated S2E')
评论列表
文章目录