Mercurial > hg > autobot
changeset 75:a7ee8eacf605
fix a potential bug(?)
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 11 Jan 2011 15:07:47 -0800 |
parents | d94fbaac7c2c |
children | 6a79522282c3 |
files | autobot/process/factory.py |
diffstat | 1 files changed, 7 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/autobot/process/factory.py Tue Jan 11 15:04:31 2011 -0800 +++ b/autobot/process/factory.py Tue Jan 11 15:07:47 2011 -0800 @@ -31,9 +31,8 @@ BuildFactory.__init__(self) self.addStep(CreateVirtualenv(name)) - self.addStep(ShellCommand(command=['mkdir', '-p', 'src'], - workdir=name)) - # TODO: set properities: + + # set properities related to the virtualenv: # - virtualenv location # - scripts location # - python location @@ -47,6 +46,11 @@ workdir=WithProperties('%(virtualenv)s/%(scripts)s'), command=find('python', 'python.exe'))) + # add a source directory + self.addStep(ShellCommand(command=['mkdir', '-p', 'src'], + workdir=WithProperties('%(virtualenv)s')) + + # clone hg repositories for hg_source in hg_sources: self.addStep(ShellCommand(command=['hg', 'clone', hg_source],