diff options
author | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-18 16:49:24 +0100 |
---|---|---|
committer | Jannis Pohlmann <jannis.pohlmann@codethink.co.uk> | 2012-04-18 16:49:24 +0100 |
commit | 105c0dbbd14626a832ebc036c02bc0c9c60e43bc (patch) | |
tree | 9e9398e9e4d4bc8da54a63094142f941b881419e /morphlib/artifact.py | |
parent | 605e21914f8c9536ff42ca31043b26200dab85e2 (diff) | |
download | morph-105c0dbbd14626a832ebc036c02bc0c9c60e43bc.tar.gz |
Remove BuildGraph, compute cache keys based on Artifacts.
With this commit, the ArtifactResolver no longer computes the cache keys
when creating Artifact objects. This will have to happen as a
post-resolving step (e.g. prior to building or checking whether a local
or remote artifact cache has any of the resolved artifacts).
The CacheKeyComputer now takes an Artifact object and computes the cache
keys using its dependencies.
BuildGraph is no longer needed for the CacheKeyComputer unit tests.
Diffstat (limited to 'morphlib/artifact.py')
-rw-r--r-- | morphlib/artifact.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/morphlib/artifact.py b/morphlib/artifact.py index f5c2e8a5..3a438747 100644 --- a/morphlib/artifact.py +++ b/morphlib/artifact.py @@ -31,10 +31,10 @@ class Artifact(object): ''' - def __init__(self, source, name, cache_key): + def __init__(self, source, name): self.source = source self.name = name - self.cache_key = cache_key + self.cache_key = None self.dependencies = [] self.dependents = [] |