import os
import catalyst.util
+from catalyst.error import CatalystError
from catalyst.output import warn
def find_target_modules():
def build_targets():
buildplan = build_target_buildplan()
+ print "buildplan = "
+ for x in buildplan:
+ print "\t" + str(x)
+
for target in buildplan:
try:
target['object'].run()
continue
for x in target['depends']:
+ if target['parent']:
+ break
+
for y in built_targets:
info = y.get_target_info()
- if info['target'] == y and info['version_stamp'] == target['info']['version_stamp'] and \
+ if info['target'] == x and info['version_stamp'] == target['info']['version_stamp'] and \
info['arch'] == target['info']['arch'] and info['rel_type'] == target['info']['rel_type']:
targets[i]['parent'] = 'built'
break
for y in targets:
- info = y.get_target_info()
- if info['target'] == y and info['version_stamp'] == target['info']['version_stamp'] and \
+ info = y['info']
+ if info['target'] == x and info['version_stamp'] == target['info']['version_stamp'] and \
info['arch'] == target['info']['arch'] and info['rel_type'] == target['info']['rel_type']:
targets[i]['parent'] = info['target']
break
continue
else:
for j, foo in enumerate(targets):
- if foo['target'] == target['parent']:
+ if foo['info']['target'] == target['parent']:
if i < j:
tmp_target = targets.pop(j)
targets.insert(i, tmp_target)