Author: lslezak Date: Wed Apr 21 21:12:57 2010 New Revision: 61811 URL: http://svn.opensuse.org/viewcvs/yast?rev=61811&view=rev Log: reload also repositories Modified: branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/Service.cc Modified: branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/Service.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/pkg-bi... ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/Service.cc (original) +++ branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/Service.cc Wed Apr 21 21:12:57 2010 @@ -373,7 +373,24 @@ } zypp::RepoManager repomanager = CreateRepoManager(); - return YCPBoolean(service_manager.RefreshService(alias->value(), repomanager)); + + if (!service_manager.RefreshService(alias->value(), repomanager)) + { + return YCPBoolean(false); + } + + // reload all repositories + for (RepoCont::size_type idx = 0; idx != repos.size(); ++idx) + { + // the repo has not been removed + if (!(repos[idx])->isDeleted()) + { + y2milestone("Reloading repository %s", (repos[idx])->repoInfo().alias().c_str()); + repos[idx]->repoInfo() = repomanager.getRepositoryInfo((repos[idx])->repoInfo().alias()); + } + } + + return YCPBoolean(true); } catch (const zypp::Exception& excpt) { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org