From d6bd848c0219700306b687eed2d16e6d72591d64 Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Tue, 1 Apr 2008 13:31:29 +0000 Subject: [PATCH] take care about the forceResolve in the testcases --- zypp/solver/detail/Testcase.cc | 11 +++++++++-- zypp/solver/detail/Testcase.h | 3 ++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/zypp/solver/detail/Testcase.cc b/zypp/solver/detail/Testcase.cc index 42e02cb..58eac7d 100644 --- a/zypp/solver/detail/Testcase.cc +++ b/zypp/solver/detail/Testcase.cc @@ -378,7 +378,9 @@ bool Testcase::createTestcase(Resolver & resolver, bool dumpPool, bool runSolver HelixControl control (dumpPath + "/solver-test.xml", repoTable, ZConfig::instance().systemArchitecture(), - pool.getRequestedLocales()); + pool.getRequestedLocales(), + "solver-system.xml.gz", + resolver.forceResolve()); for (PoolItemList::const_iterator iter = items_to_install.begin(); iter != items_to_install.end(); iter++) { control.installResolvable (iter->resolvable(), iter->status()); @@ -432,7 +434,8 @@ HelixControl::HelixControl(const std::string & controlPath, const RepositoryTable & repoTable, const Arch & systemArchitecture, const LocaleSet &languages, - const std::string & systemPath) + const std::string & systemPath, + const bool forceResolve) :dumpFile (controlPath) { file = new ofstream(controlPath.c_str()); @@ -468,6 +471,10 @@ HelixControl::HelixControl(const std::string & controlPath, *file << TAB << "code() << "\" />" << endl; } + + if (forceResolve) + *file << TAB << "" << endl; + *file << "" << endl << "" << endl << "" << endl; diff --git a/zypp/solver/detail/Testcase.h b/zypp/solver/detail/Testcase.h index 9ee4254..8176c64 100644 --- a/zypp/solver/detail/Testcase.h +++ b/zypp/solver/detail/Testcase.h @@ -103,7 +103,8 @@ class HelixControl { const RepositoryTable & sourceTable, const Arch & systemArchitecture, const LocaleSet &languages, - const std::string & systemPath = "solver-system.xml.gz"); + const std::string & systemPath = "solver-system.xml.gz", + const bool forceResolve = false); HelixControl (); ~HelixControl (); -- 2.7.4