diff options
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r-- | morphlib/buildcommand.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index 882c8d9e..d7d43af4 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -254,11 +254,10 @@ class BuildCommand(object): ''' - maybe = set(artifacts) + maybe = set() for a in artifacts: - for dep in a.dependencies: - if dep in maybe: - maybe.remove(dep) + if not a.dependents: + maybe.add(a) if len(maybe) != 1: raise MultipleRootArtifactsError(maybe) return maybe.pop() |