summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/artifact.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/artifact.py b/morphlib/artifact.py
index 3bb2a520..aef48d76 100644
--- a/morphlib/artifact.py
+++ b/morphlib/artifact.py
@@ -75,11 +75,11 @@ class Artifact(object):
done = set()
def depth_first(a):
- for dep in a.dependencies:
- for ret in depth_first(dep):
- yield ret
if a not in done:
done.add(a)
+ for dep in a.dependencies:
+ for ret in depth_first(dep):
+ yield ret
yield a
return list(depth_first(self))