From 20217cb3def211d2aea7174d248c9d24983380fe Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Thu, 12 Jan 2012 12:01:20 +0100 Subject: [PATCH] - fix types in p5solv and pysolv --- examples/p5solv | 2 +- examples/pysolv | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/p5solv b/examples/p5solv index 7aeb79f..5cc9cff 100755 --- a/examples/p5solv +++ b/examples/p5solv @@ -757,7 +757,7 @@ if ($cmd eq 'install' || $cmd eq 'erase' || $cmd eq 'up' || $cmd eq 'dup' || $cm $solver->set_flag($solv::Solver::SOLVER_FLAG_IGNORE_ALREADY_RECOMMENDED, 1); $solver->set_flag($solv::Solver::SOLVER_FLAG_SPLITPROVIDES, 1); $solver->set_flag($solv::Solver::SOLVER_FLAG_ALLOW_UNINSTALL, 1) if $cmd eq 'erase'; - if ($cmd eq 'dup' && @jobs == 1 $jobs[0]->{'how'} == ($solv::Job::SOLVER_DISTUPGRADE | $solv::Job::SOLVER_SOLVABLE_ALL)) { + if ($cmd eq 'dup' && @jobs == 1 && $jobs[0]->{'how'} == ($solv::Job::SOLVER_DISTUPGRADE | $solv::Job::SOLVER_SOLVABLE_ALL)) { $solver->set_flag($solv::Solver::SOLVER_FLAG_ALLOW_DOWNGRADE, 1); $solver->set_flag($solv::Solver::SOLVER_FLAG_ALLOW_VENDERCHANGE, 1); $solver->set_flag($solv::Solver::SOLVER_FLAG_ALLOW_ARCHCHANGE, 1); diff --git a/examples/pysolv b/examples/pysolv index 7c628da..197ba04 100755 --- a/examples/pysolv +++ b/examples/pysolv @@ -869,7 +869,7 @@ if cmd == 'install' or cmd == 'erase' or cmd == 'up' or cmd == 'dup' or cmd == ' print " Solution %d:" % solution.id elements = solution.elements(True) for element in elements: - print " - %s" % element.str + print " - %s" % element.str() print sol = '' while not (sol == 's' or sol == 'q' or (sol.isdigit() and int(sol) >= 1 and int(sol) <= len(solutions))): -- 2.7.4