[yast-commit] r61809 - in /branches/SuSE-Code-11-SP1-Branch/pkg-bindings: VERSION package/yast2-pkg-bindings.changes src/ServiceManager.cc
![](https://seccdn.libravatar.org/avatar/c3c40c0a8c67869856fd7e06cbcb4099.jpg?s=120&d=mm&r=g)
Author: lslezak Date: Wed Apr 21 19:39:38 2010 New Revision: 61809 URL: http://svn.opensuse.org/viewcvs/yast?rev=61809&view=rev Log: - reload services after refresh to avoid overwriting the updated service files (bnc#585827) - 2.17.45 Modified: branches/SuSE-Code-11-SP1-Branch/pkg-bindings/VERSION branches/SuSE-Code-11-SP1-Branch/pkg-bindings/package/yast2-pkg-bindings.changes branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/ServiceManager.cc Modified: branches/SuSE-Code-11-SP1-Branch/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/pkg-bindings/VERSION?rev=61809&r1=61808&r2=61809&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/pkg-bindings/VERSION (original) +++ branches/SuSE-Code-11-SP1-Branch/pkg-bindings/VERSION Wed Apr 21 19:39:38 2010 @@ -1 +1 @@ -2.17.44 +2.17.45 Modified: branches/SuSE-Code-11-SP1-Branch/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/pkg-bindings/package/yast2-pkg-bindings.changes?rev=61809&r1=61808&r2=61809&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ branches/SuSE-Code-11-SP1-Branch/pkg-bindings/package/yast2-pkg-bindings.changes Wed Apr 21 19:39:38 2010 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Wed Apr 21 17:22:31 UTC 2010 - lslezak@suse.cz + +- reload services after refresh to avoid overwriting the updated + service files (bnc#585827) +- 2.17.45 + +------------------------------------------------------------------- Mon Jan 18 14:40:21 UTC 2010 - lslezak@suse.cz - Pkg::ResolvableProperties() - return 'product' value from Modified: branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/ServiceManager.cc URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/ServiceManager.cc?rev=61809&r1=61808&r2=61809&view=diff ============================================================================== --- branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/ServiceManager.cc (original) +++ branches/SuSE-Code-11-SP1-Branch/pkg-bindings/src/ServiceManager.cc Wed Apr 21 19:39:38 2010 @@ -107,6 +107,16 @@ } repomgr.refreshService(serv_it->second); + + // reload the service from disk (bnc#585827) + PkgService new_service(repomgr.getService(alias), alias); + DBG << "Reloaded service: " << new_service; + + // remove the old service + _known_services.erase(serv_it); + // insert new + _known_services.insert(std::make_pair(alias, new_service)); + return true; } -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
lslezak@svn.opensuse.org