for key in label.keys():
width[key] = len(label[key])
+ with_superseded_name = 5
+
if self.verbose > 2:
LOG.debug("Breiten vor Ermittlung:\n{}".format(pp(width)))
tpl += "{{date_checked:<{date_checked}}}"
tpl = tpl.format(**width)
+ tpl_superseded = "{{empty:{}}} | {{txt}}".format(width['name'])
- if self.verbose > 2:
+ if self.verbose > 1:
LOG.debug("Zeilen-Template:\n{}".format(tpl))
+ LOG.debug("Superseeded-Template:\n{}".format(tpl_superseded))
msg = "\n" + ngettext(
"Found total {sb}one module{eb}.",
self.print_out('=' * len(header))
for full_name in module_infos.keys():
+
module_info = module_infos[full_name]
nr_modules += 1
+
output_data = self.get_output_data(module_info)
if not output_data['forge_version']:
output_data['forge_version'] = '~'
output_data['date_checked'] = '~'
if self.verbose > 3:
LOG.debug("Output data:\n" + pp(output_data))
+
self.print_out(tpl.format(**output_data))
+ if module_info.forge_superseded_by:
+ txt = _("Module {o!r} is deprecated and should be substituted by {n!r}.").format(
+ o=module_info.full_name, n=module_info.forge_superseded_by)
+ self.print_out(tpl_superseded.format(empty='', txt=txt))
self.print_out()