[yast-commit] r62171 - /branches/tmp/jsrain/unattended-migration/yast2/library/modules/Mode.ycp
Author: jsrain Date: Tue Jun 29 15:29:06 2010 New Revision: 62171 URL: http://svn.opensuse.org/viewcvs/yast?rev=62171&view=rev Log: introduced a new mode for AutoYaST driven upgrade Modified: branches/tmp/jsrain/unattended-migration/yast2/library/modules/Mode.ycp Modified: branches/tmp/jsrain/unattended-migration/yast2/library/modules/Mode.ycp URL: http://svn.opensuse.org/viewcvs/yast/branches/tmp/jsrain/unattended-migration/yast2/library/modules/Mode.ycp?rev=62171&r1=62170&r2=62171&view=diff ============================================================================== --- branches/tmp/jsrain/unattended-migration/yast2/library/modules/Mode.ycp (original) +++ branches/tmp/jsrain/unattended-migration/yast2/library/modules/Mode.ycp Tue Jun 29 15:29:06 2010 @@ -88,6 +88,8 @@ { _mode ="repair"; } + // FIXME FIXME FIXME this is a hack for DUD only + _mode = "autoupgrade"; } } @@ -113,7 +115,7 @@ if (! contains ( [ "installation", "update", "normal", "repair", "autoinstallation", "autoinst_config", - "live_installation" + "live_installation", "autoupgrade" ], new_mode)) { @@ -196,7 +198,7 @@ * we're doing an update */ global boolean update () { - return mode () == "update"; + return mode () == "update" || mode () == "autoupgrade"; } global boolean Depeche () { @@ -225,6 +227,13 @@ } /** + * doing auto-upgrade + */ +global boolean autoupgrade () { + return mode () == "autoupgrade"; +} + +/** * configuration for auto-installation, only in running system */ global boolean config () { -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
jsrain@svn.opensuse.org