Generate cache path, for deptestomatic it's not the parent dir of raw
authorMichael Matz <matz@suse.de>
Thu, 3 Apr 2008 22:46:36 +0000 (22:46 +0000)
committerMichael Matz <matz@suse.de>
Thu, 3 Apr 2008 22:46:36 +0000 (22:46 +0000)
cache path.

zypp/RepoManager.cc

index 73d281c..9f8cbab 100644 (file)
@@ -677,6 +677,7 @@ namespace zypp
     assert_alias(info);
     Pathname rawpath = rawcache_path_for_repoinfo(_pimpl->options, info);
 
+    filesystem::assert_dir(_pimpl->options.repoCachePath);
     Pathname base = _pimpl->options.repoCachePath + info.escaped_alias();
     Pathname solvfile = base.extend(".solv");
 
@@ -904,6 +905,7 @@ namespace zypp
 
   void RepoManager::setCacheStatus( const string &alias, const RepoStatus &status )
   {
+    filesystem::assert_dir(_pimpl->options.repoCachePath);
     Pathname base = _pimpl->options.repoCachePath + alias;
     Pathname cookiefile = base.extend(".cookie");