From 2266c7909252eb44dd48e648d7ae2180c994966f Mon Sep 17 00:00:00 2001 From: Stefan Schubert Date: Wed, 13 Feb 2008 15:04:52 +0000 Subject: [PATCH] take uncompressed control file --- zypp/solver/detail/Testcase.cc | 6 +++--- zypp/solver/detail/Testcase.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zypp/solver/detail/Testcase.cc b/zypp/solver/detail/Testcase.cc index 26c138a..91f608c 100644 --- a/zypp/solver/detail/Testcase.cc +++ b/zypp/solver/detail/Testcase.cc @@ -344,7 +344,7 @@ bool Testcase::createTestcase(Resolver & resolver, bool dumpPool, bool runSolver // writing control file "*-test.xml" - HelixControl control (dumpPath + "/solver-test.xml.gz", + HelixControl control (dumpPath + "/solver-test.xml", repoTable, ZConfig::instance().systemArchitecture(), language); @@ -404,7 +404,7 @@ HelixControl::HelixControl(const std::string & controlPath, const std::string & systemPath) :dumpFile (controlPath) { - file = new ofgzstream(controlPath.c_str()); + file = new ofstream(controlPath.c_str()); if (!file) { ZYPP_THROW (Exception( "Can't open " + controlPath ) ); } @@ -430,7 +430,7 @@ HelixControl::HelixControl(const std::string & controlPath, *file << TAB << " -->" << endl; *file << TAB << "first.id()) - << "-package.xml\" name=\"" << repo.alias() + << "-package.xml.gz\" name=\"" << repo.alias() << "\" />" << endl << endl; } for (PoolItemList::const_iterator iter = languages.begin(); iter != languages.end(); iter++) { diff --git a/zypp/solver/detail/Testcase.h b/zypp/solver/detail/Testcase.h index 5144be0..7f1da3b 100644 --- a/zypp/solver/detail/Testcase.h +++ b/zypp/solver/detail/Testcase.h @@ -95,7 +95,7 @@ class HelixControl { private: std::string dumpFile; // Path of the generated testcase - ofgzstream *file; + std::ofstream *file; public: HelixControl (const std::string & controlPath, -- 2.7.4