| |
@@ -100,12 +100,13 @@
|
| |
|
| |
return result
|
| |
|
| |
- def print_transaction(details):
|
| |
+ def print_transaction(details, pool):
|
| |
tb = smartcols.Table()
|
| |
tb.title = "DEPENDENCY INFORMATION"
|
| |
cl = tb.new_column("INFO")
|
| |
cl.tree = True
|
| |
cl_match = tb.new_column("MATCH")
|
| |
+ cl_repo = tb.new_column("REPO")
|
| |
for p in sorted(details):
|
| |
ln = tb.new_line()
|
| |
ln[cl] = p
|
| |
@@ -123,6 +124,13 @@
|
| |
lnc = lnss
|
| |
first = False
|
| |
lnc[cl_match] = m
|
| |
+ sel = pool.select(m, solv.Selection.SELECTION_CANON)
|
| |
+ if sel.isempty():
|
| |
+ lnc[cl_repo] = "Unknown repo"
|
| |
+ else:
|
| |
+ s = sel.solvables()
|
| |
+ assert len(s) == 1
|
| |
+ lnc[cl_repo] = str(s[0].repo)
|
| |
log.info(tb)
|
| |
|
| |
FullInfo = collections.namedtuple('FullInfo', ['name', 'rpm', 'srpm', 'requires'])
|
| |
@@ -154,7 +162,7 @@
|
| |
if log.getEffectiveLevel() <= logging.INFO or full_info:
|
| |
dep_details = _get_dependency_details(pool, solver.transaction())
|
| |
if log.getEffectiveLevel() <= logging.INFO:
|
| |
- print_transaction(dep_details)
|
| |
+ print_transaction(dep_details, pool)
|
| |
|
| |
if full_info:
|
| |
result = []
|
| |
this should fix https://pagure.io/modularity/fedmod/issue/29