summaryrefslogtreecommitdiff
path: root/morphlib/util.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2013-02-22 19:07:13 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2013-03-13 15:20:02 +0000
commitece7f823de6bd61a0676edf71a9525697848824e (patch)
tree98c408d5960915f0cb5b98a941e2dc6508047f8b /morphlib/util.py
parent6a61dd9cc1fe8a3ccd2128fb628ed929fd496ad0 (diff)
downloadmorph-ece7f823de6bd61a0676edf71a9525697848824e.tar.gz
Refactor build process
Reorganise the build_artifact() and build_artifacts() functions to allow more complex work when setting up chunk builds in build_artifact(). The staging area now holds the BuildEnvironment object (the environment variables that should be set during build). This makes sense because all build commands should be run inside the staging area and therefore through the StagingArea object. The BuildEnvironment object is now considered immutable after it is created. The environment is used in cache key computation when computing what artifacts are required; if it changes after that point we risk either computing different artifact keys for the same artifact or missing data in the cache key that should be included in the hash. Better to force changes into a separate 'extra_env' variable.
Diffstat (limited to 'morphlib/util.py')
-rw-r--r--morphlib/util.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/morphlib/util.py b/morphlib/util.py
index b4e06092..16063f45 100644
--- a/morphlib/util.py
+++ b/morphlib/util.py
@@ -42,7 +42,6 @@ def arch():
'''Return the CPU architecture of the current host.'''
return os.uname()[4]
-
def indent(string, spaces=4):
'''Return ``string`` indented by ``spaces`` spaces.