Author: dmacvicar Date: Sat Jul 21 08:01:15 2007 New Revision: 6137 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6137&view=rev Log: - assert the destination directory before we use as cache for Fetcher, because it checks its existence when adding it Modified: trunk/libzypp/zypp/RepoManager.cc Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=6137&r1=6136&r2=6137&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Sat Jul 21 08:01:15 2007 @@ -339,6 +339,7 @@ } Pathname rawpath = rawcache_path_for_repoinfo( _pimpl->options, info ); + filesystem::assert_dir(rawpath); oldstatus = metadataStatus(info); if ( ( repokind.toEnum() == RepoType::RPMMD_e ) || @@ -428,7 +429,6 @@ // ok we have the metadata, now exchange // the contents TmpDir oldmetadata; - filesystem::assert_dir(rawpath); filesystem::rename( rawpath, oldmetadata.path() ); // move the just downloaded there filesystem::rename( tmpdir.path(), rawpath ); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org