From: Stefan Schubert Date: Wed, 13 Feb 2008 15:04:52 +0000 (+0000) Subject: take uncompressed control file X-Git-Tag: 6.6.0~1400^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2266c7909252eb44dd48e648d7ae2180c994966f;p=platform%2Fupstream%2Flibzypp.git take uncompressed control file --- diff --git a/zypp/solver/detail/Testcase.cc b/zypp/solver/detail/Testcase.cc index 26c138ab1..91f608c5b 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 5144be060..7f1da3b61 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,