Just pass options into build always.
authorCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 13:08:47 +0000 (13:08 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 7 Jan 2014 13:08:47 +0000 (13:08 +0000)
cdist

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