diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-02-22 14:02:56 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-02-22 14:02:56 +0000 |
commit | 872f039f76238378add89baa4a3e7fe0f2a51a61 (patch) | |
tree | d01de6c754f97a04105319208b405717d493dbb6 | |
parent | f3aa715cf5e9ba09c44f2c1aa2c99ecd51d2a168 (diff) | |
parent | 07e11f8dcdbe500cf25c162ef774566a1a4f82e6 (diff) | |
download | morph-872f039f76238378add89baa4a3e7fe0f2a51a61.tar.gz |
Merge branch 'liw/fix-artifact-walk'
Reviewed-By: Sam Thursfield in the office
-rw-r--r-- | morphlib/artifact.py | 6 |
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)) |