summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-01-07 23:54:04 +0000
committerCarl Hetherington <cth@carlh.net>2014-01-07 23:54:04 +0000
commit411fe562073eeb2b8ff616e16b315e3b506c5445 (patch)
tree26d1f7369a2dc334121c4f8a5da74058491f45fd
parenta85777741b2574c396d8a2531355aeea22e6e130 (diff)
Remove back compat.
-rwxr-xr-xcdist9
1 files changed, 2 insertions, 7 deletions
diff --git a/cdist b/cdist
index 15b5a81..72c020d 100755
--- a/cdist
+++ b/cdist
@@ -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):