Mercurial > mozilla > hg > MozillaTry
comparison mozillatry.py @ 15:0dfc618488d6
...
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Tue, 04 Dec 2012 16:32:34 -0800 |
parents | 06b8783eae81 |
children | 6a3754236d1f |
comparison
equal
deleted
inserted
replaced
14:06b8783eae81 | 15:0dfc618488d6 |
---|---|
104 if (not self.config.get('opt')) and (not self.config.get('debug')): | 104 if (not self.config.get('opt')) and (not self.config.get('debug')): |
105 raise ConfigurationError("Must have opt or debug builds") | 105 raise ConfigurationError("Must have opt or debug builds") |
106 | 106 |
107 try_directory = self.config.get('mozilla_central') | 107 try_directory = self.config.get('mozilla_central') |
108 if (try_directory is None) or (not os.path.exists(try_directory)): | 108 if (try_directory is None) or (not os.path.exists(try_directory)): |
109 parser.error("mozilla-central directory does not exist: %s" % try_directory) | 109 raise ConfigurationError("mozilla-central directory does not exist: %s" % try_directory) |
110 | 110 |
111 def configuration_files(self, options, args): | 111 def configuration_files(self, options, args): |
112 configuration_files = configuration.Configuration.configuration_files(self, options, args) | 112 configuration_files = configuration.Configuration.configuration_files(self, options, args) |
113 if not configuration_files: | 113 if not configuration_files: |
114 default_config = os.path.expanduser(self.default_config_file) | 114 default_config = os.path.expanduser(self.default_config_file) |