diff options
author | Bryan Bishop <kanzure@gmail.com> | 2012-04-27 13:29:41 -0500 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2012-04-27 13:29:41 -0500 |
commit | ce35b436ed2a8317bd02e931de03cb5ab356ded5 (patch) | |
tree | 1b21daddf9a6e563ebdfc31937cd44bd0b45b215 /extras/crystal.py | |
parent | 34ff5fc4cecc782f909c86084b6b4a1fa71cbd43 (diff) |
faster get_dependencies on Script
Diffstat (limited to 'extras/crystal.py')
-rw-r--r-- | extras/crystal.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/extras/crystal.py b/extras/crystal.py index 1dd3faa35..7a03e29c8 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -2056,10 +2056,13 @@ class Script: return commands def get_dependencies(self): + if self.dependencies != None: + return self.dependencies dependencies = [] for command in self.commands: deps = command.get_dependencies() dependencies.extend(deps) + self.dependencies = dependencies return dependencies def to_asm(self): |