Skip to content

Commit

Permalink
add more verbose output
Browse files Browse the repository at this point in the history
  • Loading branch information
临寒 committed Jan 16, 2015
1 parent cb3e135 commit d80d36d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xUnique.py
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ def substitute_old_keys(self):
continue
# remove incorrect entry that somehow does not exist in project node tree
elif not all(self.__result.get(uuid) for uuid in key_list):
self.vprint("Some node(s) are not in generated result, remove this line :",key_list)
removed_lines.append(new_line)
continue
else:
Expand Down Expand Up @@ -431,6 +432,7 @@ def __unique_group_or_ref(self, parent_hex, group_ref_hex):
if self.nodes[current_hex]['isa'] == 'PBXReferenceProxy':
self.__unique_container_item_proxy(parent_hex, self.nodes[current_hex]['remoteRef'])
else:
self.vprint("Group/FileReference/ReferenceProxy '", group_ref_hex, "' not found, it will be removed.")
self.__result.setdefault('to_be_removed', []).append(group_ref_hex)

def __unique_build_file(self, parent_hex, build_file_hex):
Expand All @@ -441,18 +443,21 @@ def __unique_build_file(self, parent_hex, build_file_hex):
else:
file_ref_hex = current_node.get('fileRef')
if not file_ref_hex:
self.vprint("PBXFileReference '", file_ref_hex, "' not found, it will be removed.")
self.__result.setdefault('to_be_removed', []).append(build_file_hex)
else:
if self.__result.get(file_ref_hex):
cur_path_key = self.__result[file_ref_hex]['path']
self.__set_to_result(parent_hex, build_file_hex, cur_path_key)
else:
self.vprint("PBXFileReference '", file_ref_hex, "' not found, it will be removed with its PBXBuildFile :", build_file_hex,sep='')
self.__result.setdefault('to_be_removed', []).extend((build_file_hex, file_ref_hex))

def __unique_build_rules(self, parent_hex, build_rule_hex):
'''PBXBuildRule'''
current_node = self.nodes.get(build_rule_hex)
if not current_node:
self.vprint("PBXBuildRule '", current_node, "' not found, it will be removed.")
self.__result.setdefault('to_be_removed', []).append(build_rule_hex)
else:
file_type = current_node['fileType']
Expand Down

0 comments on commit d80d36d

Please sign in to comment.