1
0
mirror of https://github.com/openSUSE/libsolv.git synced 2026-02-05 12:45:46 +01:00

puts $op instead of $p in Transaction summary.

Print $op in the second part of puts when the package is to be
upgraded or downgraded. Previously same package info was been
printed.
This commit is contained in:
Jackson Isaac
2015-10-02 12:20:48 +05:30
parent 18627d1c0f
commit b686590ddf

View File

@@ -738,7 +738,7 @@ foreach cl [$trans classify [expr $solv::Transaction_SOLVER_TRANSACTION_SHOW_OBS
set cltype [$cl cget -type]
if {$cltype == $solv::Transaction_SOLVER_TRANSACTION_UPGRADED || $cltype ==$solv::Transaction_SOLVER_TRANSACTION_DOWNGRADED} {
set op [$trans othersolvable $p]
puts [format { - %s -> %s} [$p str] [$p str]]
puts [format { - %s -> %s} [$p str] [$op str]]
} else {
puts [format { - %s} [$p str]]
}