Revert previous.
authorCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 13:04:47 +0000 (13:04 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 13:04:47 +0000 (13:04 +0000)
cdist

diff --git a/cdist b/cdist
index 15b5a817deff6ee63fc9214235b94ab8b7d3bc2e..253ed7cd09bda6d677795dbf97b06fc781365243 100755 (executable)
--- a/cdist
+++ b/cdist
@@ -234,7 +234,10 @@ class Target(object):
         os.chdir(cwd)
 
     def build(self, project, options=None):
-        project.cscript['build'](self, options)
+        if options is not None:
+            project.cscript['build'](self, options)
+        else:
+            project.cscript['build'](self)
 
     def package(self, project):
         project.checkout(self)