Author: lslezak Date: Tue Dec 6 14:56:22 2011 New Revision: 66988 URL: http://svn.opensuse.org/viewcvs/yast?rev=66988&view=rev Log: - fixed reloading of repositories which have been removed during service reload (bnc#724449) - 2.17.54 Modified: branches/SuSE-Code-11-SP2-Branch/pkg-bindings/VERSION branches/SuSE-Code-11-SP2-Branch/pkg-bindings/package/yast2-pkg-bindings.changes branches/SuSE-Code-11-SP2-Branch/pkg-bindings/src/Service.cc Modified: branches/SuSE-Code-11-SP2-Branch/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/pkg-bindings/VERSION?rev=66988&r1=66987&r2=66988&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/pkg-bindings/VERSION (original) +++ branches/SuSE-Code-11-SP2-Branch/pkg-bindings/VERSION Tue Dec 6 14:56:22 2011 @@ -1 +1 @@ -2.17.53 +2.17.54 Modified: branches/SuSE-Code-11-SP2-Branch/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/pkg-bindings/package/yast2-pkg-bindings.changes?rev=66988&r1=66987&r2=66988&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/pkg-bindings/package/yast2-pkg-bindings.changes Tue Dec 6 14:56:22 2011 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Dec 6 13:29:53 UTC 2011 - lslezak@suse.cz + +- fixed reloading of repositories which have been removed during + service reload (bnc#724449) +- 2.17.54 + +------------------------------------------------------------------- Fri Oct 7 10:12:22 UTC 2011 - lslezak@suse.cz - solver reset - reset also the distupgrade solver flag Modified: branches/SuSE-Code-11-SP2-Branch/pkg-bindings/src/Service.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/pkg-bindings/src/Service.cc?rev=66988&r1=66987&r2=66988&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/pkg-bindings/src/Service.cc (original) +++ branches/SuSE-Code-11-SP2-Branch/pkg-bindings/src/Service.cc Tue Dec 6 14:56:22 2011 @@ -382,11 +382,24 @@ // reload all repositories for (RepoCont::size_type idx = 0; idx != repos.size(); ++idx) { + YRepo_Ptr repo = repos[idx]; + // the repo has not been removed - if (!(repos[idx])->isDeleted()) + if (!repo->isDeleted()) { - y2milestone("Reloading repository %s", (repos[idx])->repoInfo().alias().c_str()); - repos[idx]->repoInfo() = repomanager.getRepositoryInfo((repos[idx])->repoInfo().alias()); + zypp::RepoInfo info(repo->repoInfo()); + y2milestone("Reloading repository %s", info.alias().c_str()); + + if (repomanager.hasRepo(info)) + { + repos[idx]->repoInfo() = repomanager.getRepositoryInfo(info.alias()); + } + else + { + y2milestone("Repository %s has been removed, unloading it", (info.alias().c_str())); + RemoveResolvablesFrom(repo); + repo->setDeleted(); + } } } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org