Author: dmacvicar
Date: Sat Feb 2 00:20:04 2008
New Revision: 8444
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8444&view=rev
Log:
- use new methods
Modified:
branches/tmp/ma/jump_sat/libzypp/zypp/RepoManager.cc
Modified: branches/tmp/ma/jump_sat/libzypp/zypp/RepoManager.cc
URL: http://svn.opensuse.org/viewcvs/zypp/branches/tmp/ma/jump_sat/libzypp/zypp/RepoManager.cc?rev=8444&r1=8443&r2=8444&view=diff
==============================================================================
--- branches/tmp/ma/jump_sat/libzypp/zypp/RepoManager.cc (original)
+++ branches/tmp/ma/jump_sat/libzypp/zypp/RepoManager.cc Sat Feb 2 00:20:04 2008
@@ -885,12 +885,7 @@
Pathname base = _pimpl->options.repoCachePath + alias;
Pathname cookiefile = base.extend(".cookie");
- std::ofstream file(cookiefile.c_str());
- if (!file) {
- ZYPP_THROW (Exception( "Can't open " + cookiefile.asString() ) );
- }
- file << status;
- file.close();
+ status.saveToCookieFile(cookiefile);
}
map