Author: jdsn Date: Mon Feb 23 13:08:51 2009 New Revision: 55677 URL: http://svn.opensuse.org/viewcvs/yast?rev=55677&view=rev Log: reload SourceManager after registration (bnc#468449) do not force the refreshes during registration (bnc#476429) Modified: trunk/registration/package/yast2-registration.changes trunk/registration/src/modules/Register.ycp Modified: trunk/registration/package/yast2-registration.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/package/yast2-registration.changes?rev=55677&r1=55676&r2=55677&view=diff ============================================================================== --- trunk/registration/package/yast2-registration.changes (original) +++ trunk/registration/package/yast2-registration.changes Mon Feb 23 13:08:51 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Feb 23 12:50:14 CET 2009 - jdsn@suse.de + +- reload SourceManager after registration (bnc#468449) +- do not force the refreshes during registration (bnc#476429) + +------------------------------------------------------------------- Tue Feb 17 21:46:59 CET 2009 - jdsn@suse.de - fix autoyast registration; fix ported from SLE11 (bnc#476494) Modified: trunk/registration/src/modules/Register.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/registration/src/modules/Register.ycp?rev=55677&r1=55676&r2=55677&view=diff ============================================================================== --- trunk/registration/src/modules/Register.ycp (original) +++ trunk/registration/src/modules/Register.ycp Mon Feb 23 13:08:51 2009 @@ -907,7 +907,6 @@ // reset YSRs context YSR::del_ctx(); isInitializedSR = false; - // do no longer call TargetFinish (bnc#468449) } @@ -1317,7 +1316,8 @@ list<integer> currentNewSources = Pkg::SourceGetCurrent( true ); foreach (integer srcID, currentNewSources, { y2milestone("Refreshing source with ID: %1", srcID); - Pkg::SourceForceRefreshNow(srcID); + // no "forced" refresh needed - default is sufficient (bnc#476429) + Pkg::SourceRefreshNow(srcID); }); } } @@ -1325,7 +1325,18 @@ // finish sources (bnc#447080) if ( Pkg::SourceFinishAll() ) { - y2milestone("Successfully finished all sources."); + y2milestone("Successfully finished all sources to enforce a reload."); + + // restart the SourceManager to refill the cache with the current data (bnc#468449) + // an application that called the registration (or that follows it) should be presented an updated pkg system + if ( Pkg::SourceStartManager(true) ) + { + y2milestone("Successfully restarted source manager."); + } + else + { + y2error("Failed to restart source manager"); + } } else { @@ -1431,7 +1442,8 @@ foreach ( integer srcID, allCurrentSources, { y2milestone("Refreshing source with ID: %1", srcID); - Pkg::SourceForceRefreshNow(srcID); + // no "forced" refresh needed - default is sufficient (bnc#476429) + Pkg::SourceRefreshNow(srcID); }); y2milestone("Initial refreshing ended."); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org