# HG changeset patch # User Jeff Hammel # Date 1296686451 28800 # Node ID 524b8b215a019397b214671b90be9f9adab02bb0 # Parent 5257c9abea506c5edfd528f5b2b9a998f689f173 cleaning up platform passing a bit diff -r 5257c9abea50 -r 524b8b215a01 autobot/process/factory.py --- a/autobot/process/factory.py Wed Feb 02 14:26:41 2011 -0800 +++ b/autobot/process/factory.py Wed Feb 02 14:40:51 2011 -0800 @@ -71,10 +71,9 @@ sources = {'git': [], 'hg': []} default_branches = {'git': 'master', 'hg': 'default'} - def __init__(self, platform=None, git=None, hg=None): + def __init__(self, git=None, hg=None): BuildFactory.__init__(self) - self.platform = platform # override class-level defaults if git is not None: @@ -120,13 +119,13 @@ create a virtualenv and install some python packages in it """ - def __init__(self, platform=None, name='env', hg=None, git=None, checkout=True): + def __init__(self, name='env', hg=None, git=None, checkout=True): """ - name : of the virtualenv - hg: sources of python packages with setuptools setup.pys - git: git sources of python package """ - SourceFactory.__init__(self, platform=platform, hg=hg, git=git) + SourceFactory.__init__(self, hg=hg, git=git) # wipe any vestiges self.addStep(ShellCommand(command=['rm', '-rf', name])) @@ -173,7 +172,7 @@ def __init__(self, platform=None, name='env', hg=None, git=None): # setup the environment - VirtualenvFactory.__init__(self, platform=platform, name=name, hg=hg, git=git) + VirtualenvFactory.__init__(self, name=name, hg=hg, git=git) # install the packages sources = [] diff -r 5257c9abea50 -r 524b8b215a01 autobot/projects/mozmill/__init__.py --- a/autobot/projects/mozmill/__init__.py Wed Feb 02 14:26:41 2011 -0800 +++ b/autobot/projects/mozmill/__init__.py Wed Feb 02 14:40:51 2011 -0800 @@ -35,7 +35,7 @@ description='mozmill --help')) # get firefox - FirefoxDownloaderFactory.__init__(self, base_url=firefox_url) + FirefoxDownloaderFactory.__init__(self, platform=platform, base_url=firefox_url) # [TODO] # run the in-built tests