From 9b8b593cdd4e390a6f981067c900454698fe746f Mon Sep 17 00:00:00 2001 From: Tomas Popela Date: Mar 06 2023 12:49:00 +0000 Subject: Print SRPM for the RPM when printing the resolve-deps transaction It would be handy in situations, when there are some packaging abnormalities such as hyphen-et be part of hunspell-et and not a separate package as every other hyphen-* package. --- diff --git a/_fedmod/_depchase.py b/_fedmod/_depchase.py index 022adf1..0583977 100644 --- a/_fedmod/_depchase.py +++ b/_fedmod/_depchase.py @@ -152,6 +152,7 @@ def print_transaction(details, pool): cl = tb.new_column("INFO") cl.tree = True cl_match = tb.new_column("MATCH") + cl_srpm = tb.new_column("SRPM") cl_repo = tb.new_column("REPO") for p in sorted(details): ln = tb.new_line() @@ -170,6 +171,7 @@ def print_transaction(details, pool): lnc = lnss first = False lnc[cl_match] = m + lnc[cl_srpm] = get_srpm_for_rpm(pool, m) sel = pool.select(m, solv.Selection.SELECTION_CANON) if sel.isempty(): lnc[cl_repo] = "Unknown repo"