Immediately update RepoInfos.
authorMichael Andres <ma@suse.de>
Fri, 6 Nov 2009 18:59:11 +0000 (19:59 +0100)
committerMichael Andres <ma@suse.de>
Fri, 6 Nov 2009 18:59:11 +0000 (19:59 +0100)
zypp/RepoInfo.cc
zypp/RepoManager.cc

index 0567ad7..29924d3 100644 (file)
@@ -382,6 +382,9 @@ namespace zypp
     if (!metadataPath().empty())
       str << "- metadataPath: " << metadataPath() << std::endl;
 
+    if (!packagesPath().empty())
+      str << "- packagesPath: " << packagesPath() << std::endl;
+
     return str;
   }
 
index c817854..7ec5bbb 100644 (file)
@@ -1352,6 +1352,9 @@ namespace zypp
 
     tosave.dumpAsIniOn(file);
     tosave.setFilepath(repofile);
+    tosave.setMetadataPath( metadataPath( tosave ) );
+    tosave.setPackagesPath( packagesPath( tosave ) );
+
     _pimpl->repos.insert(tosave);
 
     progress.set(90);