Author: lslezak Date: Mon Aug 1 13:34:27 2011 New Revision: 65103 URL: http://svn.opensuse.org/viewcvs/yast?rev=65103&view=rev Log: - Pkg::SourceFinishAll() - remove upgrading repositories from the solver, fixes solver crash when called later (bnc#709494) - 2.21.6 Modified: trunk/pkg-bindings/VERSION trunk/pkg-bindings/package/yast2-pkg-bindings.changes trunk/pkg-bindings/src/Source_Save.cc Modified: trunk/pkg-bindings/VERSION URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/VERSION?rev=65103&r1=65102&r2=65103&view=diff ============================================================================== --- trunk/pkg-bindings/VERSION (original) +++ trunk/pkg-bindings/VERSION Mon Aug 1 13:34:27 2011 @@ -1 +1 @@ -2.21.5 +2.21.6 Modified: trunk/pkg-bindings/package/yast2-pkg-bindings.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/package/yast2-pkg-bindings.changes?rev=65103&r1=65102&r2=65103&view=diff ============================================================================== --- trunk/pkg-bindings/package/yast2-pkg-bindings.changes (original) +++ trunk/pkg-bindings/package/yast2-pkg-bindings.changes Mon Aug 1 13:34:27 2011 @@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Mon Aug 1 09:28:55 UTC 2011 - lslezak@suse.cz + +- Pkg::SourceFinishAll() - remove upgrading repositories from the + solver, fixes solver crash when called later (bnc#709494) +- 2.21.6 + +------------------------------------------------------------------- Wed Jul 27 08:09:42 UTC 2011 - lslezak@suse.cz - Pkg::ResolvableProperties() supports source packages Modified: trunk/pkg-bindings/src/Source_Save.cc URL: http://svn.opensuse.org/viewcvs/yast/trunk/pkg-bindings/src/Source_Save.cc?rev=65103&r1=65102&r2=65103&view=diff ============================================================================== --- trunk/pkg-bindings/src/Source_Save.cc (original) +++ trunk/pkg-bindings/src/Source_Save.cc Mon Aug 1 13:34:27 2011 @@ -244,6 +244,7 @@ * @description * Release all known installation repositories. Releasing is done automaticaly in Pkg:: * destructor, but can be done explicitly to force reloading of registered repositories. + * Upgrade repositories are automatically removed from the solver. * Use SourceSaveAll() to not loose the new registered sources before calling SourceFinishAll()! * @return boolean true on success **/ @@ -261,6 +262,16 @@ RemoveResolvablesFrom(*it); } + // remove all upgrading repositories from the solver before destructing them + for_(it, zypp::ResPool::instance().knownRepositoriesBegin(), zypp::ResPool::instance().knownRepositoriesEnd()) + { + if (zypp_ptr()->resolver()->upgradingRepo(*it)) + { + y2milestone("Removing upgrade repository '%s' (%s)", it->name().c_str(), it->alias().c_str()); + zypp_ptr()->resolver()->removeUpgradeRepo(*it); + } + } + // release all repositories repos.clear(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org