Skip to content

Commit

Permalink
improved logging for RC versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ekalinin committed Apr 9, 2012
1 parent 5fde257 commit f0441a4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nodeenv.py
Expand Up @@ -268,7 +268,7 @@ def install_node(env_dir, src_dir, opt):
Download source code for node.js, unpack it
and install it in virtual environment.
"""
logger.info(' * Install node.js (%s) ' % opt.node,
logger.info(' * Install node.js (%s' % opt.node,
extra=dict(continued=True))

node_name = 'node-v%s' % (opt.node)
Expand All @@ -292,13 +292,15 @@ def install_node(env_dir, src_dir, opt):
cmd.append(src_dir)
try:
callit(cmd, opt.verbose, True, env_dir)
logger.info(') ', extra=dict(continued=True))
except OSError:
postfix = '-RC1'
logger.info('.%s.'%(opt.node+postfix), extra=dict(continued=True))
logger.info('%s) ' % postfix, extra=dict(continued=True))
new_node_url = get_node_src_url(opt.node, postfix)
cmd[cmd.index(node_url)] = new_node_url
callit(cmd, opt.verbose, True, env_dir)

logger.info('.', extra=dict(continued=True))

env = {'JOBS': str(opt.jobs)}
conf_cmd = []
Expand Down

0 comments on commit f0441a4

Please sign in to comment.