summaryrefslogtreecommitdiff
path: root/morphlib/artifact.py
diff options
context:
space:
mode:
authorRichard Dale <richard.dale@codethink.co.uk>2013-05-23 14:18:36 +0100
committerRichard Dale <richard.dale@codethink.co.uk>2013-05-24 11:25:10 +0100
commit8a113747fc9aef15592f8ae0cabd027575e97caa (patch)
tree0e5030c844555708e4adab98b1cf316e2fded3ff /morphlib/artifact.py
parentbea6d26ac66672352bca49a8454fe80e95e75091 (diff)
downloadmorph-8a113747fc9aef15592f8ae0cabd027575e97caa.tar.gz
Add contents list to chunk and stratum metadata
Diffstat (limited to 'morphlib/artifact.py')
-rw-r--r--morphlib/artifact.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/morphlib/artifact.py b/morphlib/artifact.py
index 82680709..2f9c65df 100644
--- a/morphlib/artifact.py
+++ b/morphlib/artifact.py
@@ -24,6 +24,7 @@ class Artifact(object):
* ``name`` -- the name of the artifact
* ``cache_key`` -- a cache key to uniquely identify the artifact
* ``cache_id`` -- a dict describing the components of the cache key
+ * ``contents`` -- a list of the installed files or chunks in the artifact
* ``dependencies`` -- list of Artifacts that need to be built beforehand
* ``dependents`` -- list of Artifacts that need this Artifact to be built
@@ -39,6 +40,7 @@ class Artifact(object):
self.cache_key = None
self.dependencies = []
self.dependents = []
+ self.contents = []
def add_dependency(self, artifact):
'''Add ``artifact`` to the dependency list.'''