summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-02-26 22:51:10 +0000
committerCarl Hetherington <cth@carlh.net>2014-02-26 22:51:10 +0000
commitbbb1fb5c873ee6717f2e5228f72a9b31b88ebcd8 (patch)
tree86f88ab1a38b401bdda928934af1bf7c7439d6bb
parent7ee79434d29cb35db8a8c3e69f107a935538f919 (diff)
Preserve self.variables around builds.
-rwxr-xr-xcdist2
1 files changed, 2 insertions, 0 deletions
diff --git a/cdist b/cdist
index 8143e08..5088038 100755
--- a/cdist
+++ b/cdist
@@ -214,7 +214,9 @@ class Target(object):
os.chdir(cwd)
def build(self, project, options=None):
+ variables = self.variables
project.cscript['build'](self, options)
+ self.variables = variables
def package(self, project):
project.checkout(self)