From: Duncan Mac-Vicar P Date: Sat, 21 Jul 2007 06:01:15 +0000 (+0000) Subject: - assert the destination directory before we use as cache X-Git-Tag: BASE-SuSE-Linux-10_3-Branch~506 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=51260e9aeab824c4782cb1a977fcebdbd8834cd4;p=platform%2Fupstream%2Flibzypp.git - assert the destination directory before we use as cache for Fetcher, because it checks its existence when adding it --- diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc index 27b041d..9d7e6f2 100644 --- a/zypp/RepoManager.cc +++ b/zypp/RepoManager.cc @@ -339,6 +339,7 @@ namespace zypp } 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 @@ namespace zypp // 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 );