changeset 195:524b8b215a01

cleaning up platform passing a bit
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 02 Feb 2011 14:40:51 -0800
parents 5257c9abea50
children 4e5e38de6b1e
files autobot/process/factory.py autobot/projects/mozmill/__init__.py
diffstat 2 files changed, 5 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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 = []
--- 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