pkg_count = self.pkg_count
if not (self.opts.pretend or self.opts.fetchonly):
self._build_dir.lock()
- # Initialze PORTAGE_LOG_FILE (clean_log won't work without it).
+ # Initialize PORTAGE_LOG_FILE (clean_log won't work without it).
portage.prepare_build_dirs(self.settings["ROOT"], self.settings, 1)
# If necessary, discard old log so that we don't
# append to it.
self._pkg_cache = pkg_cache
self.dbapi = FakeVardbapi(real_vartree.settings)
- # Intialize variables needed for lazy cache pulls of the live ebuild
+ # Initialize variables needed for lazy cache pulls of the live ebuild
# metadata. This ensures that the vardb lock is released ASAP, without
# being delayed in case cache generation is triggered.
self._aux_get = self.dbapi.aux_get
msg.append(" pulled in by\n")
- selected_for_dispaly = set()
+ selected_for_display = set()
for (type, sub_type), parents in collision_reasons.items():
#From each (type, sub_type) pair select at least one atom.
best_matches[atom.cp] = (ppkg, atom)
else:
best_matches[atom.cp] = (ppkg, atom)
- selected_for_dispaly.update(best_matches.values())
+ selected_for_display.update(best_matches.values())
elif type == "use":
#Prefer atoms with unconditional use deps over, because it's
#not possible to change them on the parent, which means there
else:
matches = conditional_matches
- if not selected_for_dispaly.intersection(matches):
- selected_for_dispaly.add(matches.pop())
+ if not selected_for_display.intersection(matches):
+ selected_for_display.add(matches.pop())
def highlight_violations(atom, version, use=[]):
"""Colorize parts of an atom"""
return atom_str
- for parent_atom in selected_for_dispaly:
+ for parent_atom in selected_for_display:
parent, atom = parent_atom
msg.append(2*indent)
if isinstance(parent,
msg.append("%s required by %s" % (atom_str, parent))
msg.append("\n")
- if not selected_for_dispaly:
+ if not selected_for_display:
msg.append(2*indent)
msg.append("(no parents that aren't satisfied by other packages in this slot)\n")
self.conflict_is_unspecific = True
- omitted_parents = num_all_specific_atoms - len(selected_for_dispaly)
+ omitted_parents = num_all_specific_atoms - len(selected_for_display)
if omitted_parents:
msg.append(2*indent)
- if len(selected_for_dispaly) > 1:
+ if len(selected_for_display) > 1:
msg.append("(and %d more with the same problems)\n" % omitted_parents)
else:
msg.append("(and %d more with the same problem)\n" % omitted_parents)