Permalink
Browse files

construct the problem object

  • Loading branch information...
1 parent 29dac3e commit 9369ea27da177fad3537c5156cd584ba18083e35 @dmacvicar committed Feb 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/rpm/transaction.rb
View
@@ -197,8 +197,8 @@ def commit(&user_callback)
ps = RPM::C.rpmtsProblems(@ptr)
psi = RPM::C.rpmpsInitIterator(ps)
while (RPM::C.rpmpsNextIterator(psi) >= 0)
- problem = RPM::C.rpmpsGetProblem(psi)
- STDERR.puts RPM::C.rpmProblemString(problem).read_string
+ problem = Problem.from_ptr(RPM::C.rpmpsGetProblem(psi))
+ STDERR.puts problem
end
RPM::C.rpmpsFree(ps)
end

0 comments on commit 9369ea2

Please sign in to comment.