diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-09-17 16:43:10 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-09-19 12:43:27 +0000 |
commit | 945c60a1aa0b48f49c08e70206a5ca24f1c710bb (patch) | |
tree | 63fb67231b76cb5f7da734b5278362a5433a5863 /morphlib/buildcommand.py | |
parent | 529bd21549060c8a8caa1901bf2325fcca079dca (diff) | |
download | morph-945c60a1aa0b48f49c08e70206a5ca24f1c710bb.tar.gz |
Remove Artifact compatibility methods
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r-- | morphlib/buildcommand.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index c8d9930c..edd2f0c5 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -259,7 +259,7 @@ class BuildCommand(object): ''' - return [a for a in artifacts if not a.dependent_sources] + return [a for a in artifacts if not a.dependents] @staticmethod def get_ordered_sources(artifacts): @@ -490,9 +490,9 @@ class BuildCommand(object): ''' def dependent_stratum_morphs(source): - dependent_sources = set(itertools.chain.from_iterable( - a.dependent_sources for a in source.artifacts.itervalues())) - dependent_strata = set(s for s in dependent_sources + dependents = set(itertools.chain.from_iterable( + a.dependents for a in source.artifacts.itervalues())) + dependent_strata = set(s for s in dependents if s.morphology['kind'] == 'stratum') return set(s.morphology for s in dependent_strata) return dependent_stratum_morphs(s1) == dependent_stratum_morphs(s2) |