]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
puts $op instead of $p in Transaction summary. 105/head
authorJackson Isaac <jacksonisaac2008@gmail.com>
Fri, 2 Oct 2015 06:50:48 +0000 (12:20 +0530)
committerJackson Isaac <jacksonisaac2008@gmail.com>
Fri, 2 Oct 2015 06:50:48 +0000 (12:20 +0530)
Print $op in the second part of puts when the package is to be
upgraded or downgraded. Previously same package info was been
printed.

examples/tclsolv

index 6f819aa73b9ecefb095195d90b89b75b2a01360d..0fc4e2ab399f3acd39c05825d5f372517112cf90 100755 (executable)
@@ -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]]
     }