Author: matz Date: Mon Apr 28 18:09:40 2008 New Revision: 9871 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9871&view=rev Log: Assert the cache directory _after_ cleaning. 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=9871&r1=9870&r2=9871&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Mon Apr 28 18:09:40 2008 @@ -684,10 +684,6 @@ Pathname rawpath = rawcache_path_for_repoinfo(_pimpl->options, info); filesystem::assert_dir(_pimpl->options.repoCachePath); - Pathname base = solv_path_for_repoinfo( _pimpl->options, info); - filesystem::assert_dir(base); - Pathname solvfile = base / "solv"; - RepoStatus raw_metadata_status = metadataStatus(info); if ( raw_metadata_status.empty() ) { @@ -731,6 +727,11 @@ } MIL << info.alias() << " building cache..." << endl; + + Pathname base = solv_path_for_repoinfo( _pimpl->options, info); + filesystem::assert_dir(base); + Pathname solvfile = base / "solv"; + // do we have type? repo::RepoType repokind = info.type(); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org