# HG changeset patch # User Jeff Hammel # Date 1297817059 28800 # Node ID 5148132de9b680a7c3f95923b91e8042b012bd94 # Parent 85052c5ab8f1cec3c8d772c6d81d764641440ab4 stub out first part of getting firefox downloader to work on mac....i love you, mr jobs diff -r 85052c5ab8f1 -r 5148132de9b6 autobot/process/factory.py --- a/autobot/process/factory.py Wed Feb 09 14:52:17 2011 -0800 +++ b/autobot/process/factory.py Tue Feb 15 16:44:19 2011 -0800 @@ -76,8 +76,18 @@ haltOnFailure=True)) self.addStep(SetProperty(property='firefox', command=self.abspath('firefox/firefox.exe'))) + elif platform['os'] == 'mac': + # See: + # http://mxr.mozilla.org/mozilla-central/source/build/package/mac_osx/unpack-diskimage + # http://hg.mozilla.org/qa/mozmill-automation/file/default/libs/install.py + self.addStep(ShellCommand(command=['rm', '-rf', 'firefox-tmp'])) + self.addStep(ShellCommand(command=['mkdir', 'firefox-tmp'], + haltOnFailure=True)) + self.addStep(ShellCommand(command=['hdiutil', 'attach', + WithProperties('%(firefox_bundle)s'), + '-mountpoint', 'firefox-tmp'], + haltOnFailure=True)) else: - # TODO: mac raise NotImplementedError("FirefoxDownloader doesn't know how to work with your os: %s" % platform['os']) def abspath(self, path):