diff options
| author | 2019-05-27 14:50:15 +0100 | |
|---|---|---|
| committer | 2019-05-27 14:50:15 +0100 | |
| commit | 786f04ea16efdd8d6c053cc4a74194d5233a6cb0 (patch) | |
| tree | ca7757ea64d0d11f8f17daa01b74ab383af94511 /src/ModuleManager.py | |
| parent | Throw an exception when we detect a complex circular dependency (diff) | |
set `changed = True` when we pop a module with no dependencies left
Diffstat (limited to 'src/ModuleManager.py')
| -rw-r--r-- | src/ModuleManager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ModuleManager.py b/src/ModuleManager.py index ef452ff8..ff293446 100644 --- a/src/ModuleManager.py +++ b/src/ModuleManager.py @@ -250,6 +250,7 @@ class ModuleManager(object): to_remove = [] for name, dependencies in definition_dependencies.items(): if not dependencies: + changed = True # pop things with no unfufilled dependencies to_remove.append(name) for name in to_remove: @@ -257,8 +258,8 @@ class ModuleManager(object): del definition_dependencies[name] for deps in definition_dependencies.values(): if name in deps: - # fulfill dependencies for things we just popped changed = True + # fulfill dependencies for things we just popped deps.remove(name) if not changed: |
