From 9ed1a474d08569654e1136836cf2ecea4d5c5ad0 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Fri, 27 Apr 2012 15:02:53 -0500 Subject: [PATCH] minor fixes for insert_single_with_dependencies --- extras/crystal.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/extras/crystal.py b/extras/crystal.py index b98210920..26377b06d 100644 --- a/extras/crystal.py +++ b/extras/crystal.py @@ -2376,7 +2376,7 @@ class TrainerFragment(Command): deps.extend(self.params[5].get_dependencies(recompute=recompute, global_dependencies=global_dependencies)) #deps.append(self.params[6]) deps.extend(self.params[6].get_dependencies(recompute=recompute, global_dependencies=global_dependencies)) - self.dependencies = dep + self.dependencies = deps return deps def to_asm(self): @@ -4858,8 +4858,9 @@ class Asm: self.labels.append(new_object.label) return True def insert_single_with_dependencies(self, object0): - objects = get_dependencies_for(object0) + [object0] - objects = list(set(objects)) + global_dependencies = set([object0]) + poopbutt = get_dependencies_for(object0, global_dependencies=global_dependencies, recompute=False) + objects = global_dependencies for object in objects: #if object in self.parts: # if self.debug: