Skip to content

Commit

Permalink
Merge pull request #3125 from g7/productcomposer-reasons
Browse files Browse the repository at this point in the history
pkglistgen: add sort reasonings in product_composer mode
  • Loading branch information
dirkmueller committed Aug 6, 2024
2 parents 2ffbd9b + ccbf820 commit 82c53af
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions pkglistgen/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,19 +330,21 @@ def tocompose(self, prefix, arch, ignore_broken=False, comment=None):
continue
if name in missing:
if ignore_broken and name not in self.required:
msg = ' {} not found on {}'.format(name, ','.join(sorted(missing[name])))
content += prefix + "#- " + msg + "\n"
msg = f" {name} not found on {','.join(sorted(missing[name]))}"
content += f"{prefix} #- {msg}\n"
self.logger.error(msg)
continue
if name in unresolvable:
if ignore_broken and name not in self.required:
msg = ' {} uninstallable: {}'.format(name, unresolvable[name])
content += prefix + "#- " + msg + "\n"
msg = f" {name} uninstallable: {unresolvable[name]}"
content += f"{prefix} #- {msg}\n"
self.logger.error(msg)
continue
content += prefix + "- " + name
content += f"{prefix} - {name}"
if name in packages and packages[name]:
content += f" # reason: {packages[name]}"
if comment:
content += " # " + comment
content += f" # {comment}"
content += "\n"

content += "\n"
Expand Down

0 comments on commit 82c53af

Please sign in to comment.