Author: jsrain Date: Thu Jan 20 14:20:43 2011 New Revision: 63235 URL: http://svn.opensuse.org/viewcvs/yast?rev=63235&view=rev Log: fix initialization of AutoUpgrade for 2nd stage Modified: branches/SuSE-Code-11-SP2-Branch/installation/package/yast2-installation.changes branches/SuSE-Code-11-SP2-Branch/installation/src/include/inst_inc_second.ycp Modified: branches/SuSE-Code-11-SP2-Branch/installation/package/yast2-installation.changes URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/installation/package/yast2-installation.changes?rev=63235&r1=63234&r2=63235&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/installation/package/yast2-installation.changes (original) +++ branches/SuSE-Code-11-SP2-Branch/installation/package/yast2-installation.changes Thu Jan 20 14:20:43 2011 @@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Thu Jan 20 14:18:41 CET 2011 - jsrain@suse.cz + +- fix initialization of AutoUpgrade for 2nd stage + +------------------------------------------------------------------- Wed Jan 19 15:09:24 CET 2011 - jsrain@suse.cz - adaptations for unattended migration (fate#310481) Modified: branches/SuSE-Code-11-SP2-Branch/installation/src/include/inst_inc_second.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/SuSE-Code-11-SP2-Branch/installation/src/include/inst_inc_second.ycp?rev=63235&r1=63234&r2=63235&view=diff ============================================================================== --- branches/SuSE-Code-11-SP2-Branch/installation/src/include/inst_inc_second.ycp (original) +++ branches/SuSE-Code-11-SP2-Branch/installation/src/include/inst_inc_second.ycp Thu Jan 20 14:20:43 2011 @@ -396,13 +396,15 @@ } void SetSecondStageInstallation () { - // Detect mode early to be able to setup steps correctly - if (FileUtils::Exists (Installation::destdir + Installation::file_update_mode)) { - Mode::SetMode ("update"); - } - else if (FileUtils::Exists (Installation::destdir + Installation::file_live_install_mode)) { - Mode::SetMode ("live_installation"); - } + if (! Mode::autoupgrade()) { + // Detect mode early to be able to setup steps correctly + if (FileUtils::Exists (Installation::destdir + Installation::file_update_mode)) { + Mode::SetMode ("update"); + } + else if (FileUtils::Exists (Installation::destdir + Installation::file_live_install_mode)) { + Mode::SetMode ("live_installation"); + } + } SetXENExceptions(); -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org