Author: locilka Date: Thu May 14 13:51:22 2009 New Revision: 57174 URL: http://svn.opensuse.org/viewcvs/yast?rev=57174&view=rev Log: - Installation/Upgrade newly require some packages essential for them to succeed (bnc #469730). Modified: trunk/installation/package/yast2-installation.changes trunk/installation/src/clients/inst_mode.ycp Modified: trunk/installation/package/yast2-installation.changes URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/package/yast2-instal... ============================================================================== --- trunk/installation/package/yast2-installation.changes (original) +++ trunk/installation/package/yast2-installation.changes Thu May 14 13:51:22 2009 @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu May 14 13:45:08 CEST 2009 - locilka@suse.cz + +- Installation/Upgrade newly require some packages essential for + them to succeed (bnc #469730). + +------------------------------------------------------------------- Mon Apr 27 10:22:24 CEST 2009 - locilka@suse.cz - Using a new yast-spanner (old yast icon) for Repair. Modified: trunk/installation/src/clients/inst_mode.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/installation/src/clients/inst_mod... ============================================================================== --- trunk/installation/src/clients/inst_mode.ycp (original) +++ trunk/installation/src/clients/inst_mode.ycp Thu May 14 13:51:22 2009 @@ -395,6 +395,17 @@ ); Wizard::SetTitleIcon ("yast-software"); +// BNC #469730: Installation requires some packages +void SetRequiredPackages () { + if (new_mode == `install) { + y2milestone ("Adding packages required for installation to succeed..."); + PackagesProposal::AddResolvables ("YaST-Installation", `package, ["yast2-installation"]); + } else if (new_mode == `update) { + y2milestone ("Adding packages required for update to succeed..."); + PackagesProposal::AddResolvables ("YaST-Update", `package, ["yast2-update"]); + } +} + if (Mode::mode () != InstData::start_mode) { y2milestone ("Switching Steps from %1 to %2 ", InstData::start_mode, Mode::mode ()); UpdateWizardSteps (); @@ -405,8 +416,11 @@ Kernel::ProbeKernel(); Pkg::TargetFinish (); Pkg::PkgReset (); + // Resets all resolvables required by installation/update parts + // Particular modules will add them again when needed PackagesProposal::ResetAll(); Packages::Init( true ); + SetRequiredPackages (); ret = ProductControl::RunFrom (ProductControl::CurrentStep () + 1, false); @@ -414,6 +428,7 @@ ret = `finish; } else { UpdateWizardSteps (); + SetRequiredPackages (); ret = ProductControl::RunFrom (ProductControl::CurrentStep () + 1, false); if (ret == `next) -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org