Skip to content

Commit

Permalink
pkglistgen: add sort reasonings in product_composer mode
Browse files Browse the repository at this point in the history
Reasonings are really useful to understand why a package has been
pulled in. This commit adds those back in product_composer mode
and it matches the legacy behaviour.

Signed-off-by: Eugenio Paolantonio <eugenio.paolantonio@suse.com>
  • Loading branch information
g7 committed Jul 18, 2024
1 parent 7404e0c commit ccbf820
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkglistgen/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ def tocompose(self, prefix, arch, ignore_broken=False, comment=None):
self.logger.error(msg)
continue
content += f"{prefix} - {name}"
if name in packages and packages[name]:
content += f" # reason: {packages[name]}"
if comment:
content += f" # {comment}"
content += "\n"
Expand Down

0 comments on commit ccbf820

Please sign in to comment.