diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-01-07 23:54:04 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-01-07 23:54:04 +0000 |
| commit | 411fe562073eeb2b8ff616e16b315e3b506c5445 (patch) | |
| tree | 26d1f7369a2dc334121c4f8a5da74058491f45fd | |
| parent | a85777741b2574c396d8a2531355aeea22e6e130 (diff) | |
Remove back compat.
| -rwxr-xr-x | cdist | 9 |
1 files changed, 2 insertions, 7 deletions
@@ -217,8 +217,6 @@ class Target(object): # Make the options to pass in from the option_defaults of the thing # we are building and any options specified by the parent. - # The presence of option_defaults() is taken to mean that this - # cscript understands and expects options options = {} if 'option_defaults' in dep.cscript: options = dep.cscript['option_defaults']() @@ -226,14 +224,11 @@ class Target(object): for k, v in d[2].iteritems(): options[k] = v - self.build(dep, options) - else: - # Backwards compatibility - self.build(dep) + self.build(dep, options) os.chdir(cwd) - def build(self, project, options=None): + def build(self, project, options): project.cscript['build'](self, options) def package(self, project): |
