pkglistgen: use f-strings in Group.tocompose()
Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
This commit is contained in:
parent
1a95eb1165
commit
7404e0c697
@ -330,19 +330,19 @@ class Group(object):
|
|||||||
continue
|
continue
|
||||||
if name in missing:
|
if name in missing:
|
||||||
if ignore_broken and name not in self.required:
|
if ignore_broken and name not in self.required:
|
||||||
msg = ' {} not found on {}'.format(name, ','.join(sorted(missing[name])))
|
msg = f" {name} not found on {','.join(sorted(missing[name]))}"
|
||||||
content += prefix + "#- " + msg + "\n"
|
content += f"{prefix} #- {msg}\n"
|
||||||
self.logger.error(msg)
|
self.logger.error(msg)
|
||||||
continue
|
continue
|
||||||
if name in unresolvable:
|
if name in unresolvable:
|
||||||
if ignore_broken and name not in self.required:
|
if ignore_broken and name not in self.required:
|
||||||
msg = ' {} uninstallable: {}'.format(name, unresolvable[name])
|
msg = f" {name} uninstallable: {unresolvable[name]}"
|
||||||
content += prefix + "#- " + msg + "\n"
|
content += f"{prefix} #- {msg}\n"
|
||||||
self.logger.error(msg)
|
self.logger.error(msg)
|
||||||
continue
|
continue
|
||||||
content += prefix + "- " + name
|
content += f"{prefix} - {name}"
|
||||||
if comment:
|
if comment:
|
||||||
content += " # " + comment
|
content += f" # {comment}"
|
||||||
content += "\n"
|
content += "\n"
|
||||||
|
|
||||||
content += "\n"
|
content += "\n"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user