Mailinglist Archive: zypp-commit (171 mails)

< Previous Next >
[zypp-commit] <sat-solver> master : Find malicious job in solver request
  • From: Klaus Kämpf <kkaempf@xxxxxxx>
  • Date: Tue, 23 Jun 2009 15:05:24 +0200
  • Message-id: <E1MJ5hP-0007jR-Nr@xxxxxxxxxxxxxxxx>
ref: refs/heads/master
commit 952f63f30cac8ec10b9aa844f11e5fc5c0fe751c
Author: Klaus Kämpf <kkaempf@xxxxxxx>
Date: Tue Jun 23 15:05:24 2009 +0200

Find malicious job in solver request
---
bindings/ruby/tests/solutions.rb | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/bindings/ruby/tests/solutions.rb b/bindings/ruby/tests/solutions.rb
index 0dbead3..22d5fb7 100644
--- a/bindings/ruby/tests/solutions.rb
+++ b/bindings/ruby/tests/solutions.rb
@@ -63,7 +63,11 @@ class SolutionTest < Test::Unit::TestCase
when Satsolver::SOLUTION_SOLVABLE
puts " Solvable : #{element.job}"
when Satsolver::SOLUTION_JOB
- puts " Bad job : #{element.job}"
+ bad = element.job
+ puts " Bad job : #{bad}"
+ request.each do |job|
+ puts "\tculprit found" if job == bad
+ end
when Satsolver::SOLUTION_DISTUPGRADE
puts " Upgrade : #{element.job}"
when Satsolver::SOLUTION_INFARCH
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages