summaryrefslogtreecommitdiff
path: root/morphlib/artifact.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-12 14:50:00 +0100
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-04-12 18:16:20 +0100
commitdcf5f8f3b3bb9a82a2fad8889494d72674a0ce3a (patch)
tree16f21ae8da689a8231a4152ee9cd509be85d8428 /morphlib/artifact.py
parent0bab57fbbaad5a70e5b7d9e62c31d4e38dc31a30 (diff)
downloadmorph-dcf5f8f3b3bb9a82a2fad8889494d72674a0ce3a.tar.gz
Add the new ArtifactResolver class.
This class takes a CacheKeyComputer and a SourcePool, analyses the sources and their dependencies and creates a list of artifacts (represented by Artifact objects) that would be created when building sources in the pool.
Diffstat (limited to 'morphlib/artifact.py')
-rw-r--r--morphlib/artifact.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/morphlib/artifact.py b/morphlib/artifact.py
index db105ebd..9403f081 100644
--- a/morphlib/artifact.py
+++ b/morphlib/artifact.py
@@ -20,3 +20,8 @@ class Artifact(object):
self.source = source
self.name = name
self.cache_key = cache_key
+
+ def __str__(self): # pragma: no cover
+ return '%s.%s.%s' % (self.cache_key,
+ self.source.morphology['kind'],
+ self.name)