# HG changeset patch # User Jeff Hammel # Date 1296688538 28800 # Node ID 38fc07fb6aad08f9f98ee5dba184a1b8d6061f13 # Parent 1a50b63c73a3674c9f113f1f6bbb425e36a13526 extract file on linux diff -r 1a50b63c73a3 -r 38fc07fb6aad autobot/process/factory.py --- a/autobot/process/factory.py Wed Feb 02 15:08:54 2011 -0800 +++ b/autobot/process/factory.py Wed Feb 02 15:15:38 2011 -0800 @@ -57,13 +57,20 @@ WithProperties('%(firefox_url)s'), '-O', WithProperties('%(firefox_bundle)s')], + description='download Firefox', haltOnFailure=True)) # three cases: # - linux has firefox in a .tar.bz2 file # - mac has firefox in a .dmg file [TODO] # - windows has firefox in a .zip file - + if platform['os'] == 'linux': + self.addStep(ShellCommand(command=['tar', 'xjvf', + WithProperties('%(firefox_bundle)s')], + haltOnFailure=True + )) + else: + raise NotImplementedError("FirefoxDownloader doesn't know how to work with your os: %s" % platform['os']) class SourceFactory(BuildFactory):