Mailinglist Archive: zypp-commit (233 mails)

< Previous Next >
[zypp-commit] <libzypp> SuSE-Code-11-Branch : Let RepoManager::addRepository update the RepoInfos metadata and packages path.
  • From: Michael Andres <ma@xxxxxxx>
  • Date: Mon, 16 Nov 2009 16:45:28 +0100
  • Message-id: <E1NA3yV-0003C3-Pa@xxxxxxxxxxxxxxxx>
ref: refs/heads/SuSE-Code-11-Branch
commit 5d6d102645ac75107823d33481f7f6eccee89796
Author: Michael Andres <ma@xxxxxxx>
Date: Mon Nov 16 16:45:28 2009 +0100

Let RepoManager::addRepository update the RepoInfos metadata and packages
path.
---
zypp/RepoManager.cc | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/zypp/RepoManager.cc b/zypp/RepoManager.cc
index 55c624b..c3e3966 100644
--- a/zypp/RepoManager.cc
+++ b/zypp/RepoManager.cc
@@ -1336,6 +1336,15 @@ namespace zypp

tosave.dumpAsIniOn(file);
tosave.setFilepath(repofile);
+ tosave.setMetadataPath( metadataPath( tosave ) );
+ tosave.setPackagesPath( packagesPath( tosave ) );
+ {
+ // We chould fix the API as we must injet those paths
+ // into the repoinfo in order to keep it usable.
+ RepoInfo & oinfo( const_cast<RepoInfo &>(info) );
+ oinfo.setMetadataPath( metadataPath( tosave ) );
+ oinfo.setPackagesPath( packagesPath( tosave ) );
+ }
_pimpl->repos.insert(tosave);

progress.set(90);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages