Hello community,
here is the log from the commit of package yast2-installation for openSUSE:Factory checked in at 2013-11-21 15:26:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-installation (Old)
and /work/SRC/openSUSE:Factory/.yast2-installation.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "yast2-installation"
Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-installation/yast2-installation.changes 2013-11-20 11:29:55.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.yast2-installation.new/yast2-installation.changes 2013-11-21 15:26:47.000000000 +0100
@@ -1,0 +2,7 @@
+Wed Nov 20 13:21:57 UTC 2013 - lslezak@suse.cz
+
+- removed support for automatic 2nd stage (the 2nd stage has been
+ dropped completely) (FATE#314695)
+- 3.1.7
+
+-------------------------------------------------------------------
Old:
----
yast2-installation-3.1.6.tar.bz2
New:
----
yast2-installation-3.1.7.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ yast2-installation.spec ++++++
--- /var/tmp/diff_new_pack.yEizBF/_old 2013-11-21 15:26:48.000000000 +0100
+++ /var/tmp/diff_new_pack.yEizBF/_new 2013-11-21 15:26:48.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-installation
-Version: 3.1.6
+Version: 3.1.7
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
++++++ yast2-installation-3.1.6.tar.bz2 -> yast2-installation-3.1.7.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/VERSION new/yast2-installation-3.1.7/VERSION
--- old/yast2-installation-3.1.6/VERSION 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/VERSION 2013-11-21 11:35:01.000000000 +0100
@@ -1 +1 @@
-3.1.6
+3.1.7
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/package/yast2-installation.changes new/yast2-installation-3.1.7/package/yast2-installation.changes
--- old/yast2-installation-3.1.6/package/yast2-installation.changes 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/package/yast2-installation.changes 2013-11-21 11:35:01.000000000 +0100
@@ -1,4 +1,11 @@
-------------------------------------------------------------------
+Wed Nov 20 13:21:57 UTC 2013 - lslezak@suse.cz
+
+- removed support for automatic 2nd stage (the 2nd stage has been
+ dropped completely) (FATE#314695)
+- 3.1.7
+
+-------------------------------------------------------------------
Tue Nov 19 10:19:13 CET 2013 - locilka@suse.com
- Proposing separate /home partition on SLES and SLES for VMware
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/package/yast2-installation.spec new/yast2-installation-3.1.7/package/yast2-installation.spec
--- old/yast2-installation-3.1.6/package/yast2-installation.spec 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/package/yast2-installation.spec 2013-11-21 11:35:01.000000000 +0100
@@ -17,7 +17,7 @@
Name: yast2-installation
-Version: 3.1.6
+Version: 3.1.7
Release: 0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/src/Makefile.am new/yast2-installation-3.1.7/src/Makefile.am
--- old/yast2-installation-3.1.6/src/Makefile.am 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/src/Makefile.am 2013-11-21 11:35:01.000000000 +0100
@@ -34,7 +34,6 @@
clients/inst_finish.rb \
clients/inst_network_check.rb \
clients/inst_pre_install.rb \
- clients/inst_automatic_configuration.rb \
clients/inst_ask_online_update.rb \
clients/inst_new_desktop.rb \
clients/inst_initialization.rb \
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/src/clients/inst_automatic_configuration.rb new/yast2-installation-3.1.7/src/clients/inst_automatic_configuration.rb
--- old/yast2-installation-3.1.6/src/clients/inst_automatic_configuration.rb 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/src/clients/inst_automatic_configuration.rb 1970-01-01 01:00:00.000000000 +0100
@@ -1,453 +0,0 @@
-# encoding: utf-8
-
-# ------------------------------------------------------------------------------
-# Copyright (c) 2006-2012 Novell, Inc. All Rights Reserved.
-#
-#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of version 2 of the GNU General Public License as published by the
-# Free Software Foundation.
-#
-# This program is distributed in the hope that it will be useful, but WITHOUT
-# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License along with
-# this program; if not, contact Novell, Inc.
-#
-# To contact Novell about this file by physical or electronic mail, you may find
-# current contact information at www.novell.com.
-# ------------------------------------------------------------------------------
-
-# File: clients/inst_automatic_configuration.ycp
-# Package: installation
-# Summary: Automatic configuration instead of the second stage
-# Authors: Lukas Ocilka
-#
-# $Id$
-#
-# @see #http://visnov.blogspot.com/2008/02/getting-rid-of-2nd-stage-of.html
-module Yast
- class InstAutomaticConfigurationClient < Client
- def main
- Yast.import "UI"
- Yast.import "Mode"
- Yast.import "Stage"
- Yast.import "FileUtils"
- Yast.import "Directory"
- Yast.import "GetInstArgs"
- Yast.import "Wizard"
- Yast.import "Progress"
- # reads the control file
- # and sets sections of ProductFeatures
- Yast.import "ProductControl"
- Yast.import "ProductFeatures"
- Yast.import "InstError"
-
- textdomain "installation"
-
- if GetInstArgs.going_back
- # bnc #395098
- # There is no reason to go back as AC is non-interactive
- # and additionally there is nothing before AC to run
- Builtins.y2milestone("Returning `next, no reason to go back")
- return :next
- end
-
- @test_mode = false
-
- if Ops.greater_than(Builtins.size(WFM.Args), 0) &&
- Ops.is_string?(WFM.Args(0))
- Builtins.y2milestone("Args: %1", WFM.Args)
- @test_mode = true if WFM.Args(0) == "test"
- end
-
- Wizard.CreateDialog if @test_mode
-
- Builtins.y2milestone("automatic_configuration started")
-
- @proposal_scripts_to_call = []
-
- @globals_features = ProductFeatures.GetSection("globals")
- @acc = Ops.get_list(@globals_features, "automatic_configuration", [])
- @acc_ignore = Ops.get_list(@globals_features, "ac_redraw_and_ignore", [])
-
- if @acc == nil || @acc == []
- Builtins.y2warning("No AC defined (%1), skipping...", @acc)
- return :next
- end
-
- @disabled_ac_items = ProductControl.GetDisabledACItems
- Builtins.foreach(@acc) do |one_step|
- new_step = {
- "unique" => Ops.get_string(one_step, "unique_id", ""),
- "label" => Ops.get_string(one_step, "text_id", ""),
- "icon" => Ops.get_string(one_step, "icon", "yast"),
- "type" => Ops.get_string(one_step, "type", "scripts"),
- "items" => Builtins.maplist(Ops.get_list(one_step, "ac_items", [])) do |one_ic_item|
- one_ic_item
- end
- }
- # filter out the wrong ones
- Ops.set(
- new_step,
- "items",
- Builtins.filter(Ops.get_list(new_step, "items", [])) do |one_item|
- if one_item == nil || one_item == ""
- Builtins.y2error(
- "Wrong item '%1' came from %2",
- one_item,
- one_step
- )
- next false
- end
- if Builtins.haskey(
- @disabled_ac_items,
- Ops.get_string(new_step, "unique", "")
- ) &&
- Builtins.contains(
- Ops.get(
- @disabled_ac_items,
- Ops.get_string(new_step, "unique", ""),
- []
- ),
- one_item
- )
- Builtins.y2milestone(
- "Item %1 found among disabled items",
- one_item
- )
- next false
- end
- true
- end
- )
- Ops.set(
- new_step,
- "label",
- ProductControl.GetTranslatedText(
- Ops.get_string(new_step, "label", "")
- )
- )
- if Ops.get_string(new_step, "label", "") == "" ||
- Ops.get(new_step, "label") == nil
- Builtins.y2error(
- "Unknown label text ID '%1', using fallback",
- Ops.get_string(new_step, "label", "")
- )
- Ops.set(new_step, "label", _("Creating automatic configuration..."))
- end
- @proposal_scripts_to_call = Builtins.add(
- @proposal_scripts_to_call,
- Convert.convert(new_step, :from => "map", :to => "map ")
- )
- end
-
- @nr_of_steps = 0
-
- @current_sub_step = 0
- @current_step = 0
- @current_client = ""
- @ac_redraw_and_ignore = nil
-
- @last_client = nil
-
- Builtins.foreach(@proposal_scripts_to_call) do |one_autoconf_call|
- @nr_of_steps = Ops.add(
- @nr_of_steps,
- # Proposals have two steps, scripts only one
- Ops.multiply(
- Ops.get_string(one_autoconf_call, "type", "") == "proposals" ? 2 : 1,
- Builtins.size(Ops.get_list(one_autoconf_call, "items", []))
- )
- )
- end
-
- SetWizardContents()
-
- # items per step
- @nr_of_items = 0
-
- Builtins.foreach(@proposal_scripts_to_call) do |one_autoconf_call|
- if Ops.get_string(one_autoconf_call, "icon", "") != ""
- Wizard.SetTitleIcon(Ops.get_string(one_autoconf_call, "icon", ""))
- else
- # generic YaST icon fallback
- Wizard.SetTitleIcon("yast")
- end
- type = Ops.get_string(one_autoconf_call, "type", "")
- @nr_of_items = Ops.multiply(
- Ops.get_string(one_autoconf_call, "type", "") == "proposals" ? 2 : 1,
- Builtins.size(Ops.get_list(one_autoconf_call, "items", []))
- )
- label = Ops.get_locale(
- one_autoconf_call,
- "label",
- _("Automatic configuration...")
- )
- Builtins.y2milestone("Steps: %1, Label: %2", @nr_of_steps, label)
- case type
- when "scripts"
- CallScripts(Ops.get_list(one_autoconf_call, "items", []))
- when "proposals"
- CallProposals(Ops.get_list(one_autoconf_call, "items", []))
- else
- Builtins.y2error("Unknown script type '%1'", type)
- end
- end
-
- Builtins.y2milestone("automatic_configuration finished")
-
- # Set to 100%
- UI.ChangeWidget(Id("one_set_progress"), :Value, @nr_of_items)
- UI.ChangeWidget(Id("autoconf_progress"), :Value, @nr_of_steps)
-
- Wizard.CloseDialog if @test_mode
-
- :auto
- end
-
- # Prepares the list of installation scripts to be executed.
- # This comes from control file where scripts are mentioned without the leading
- # "inst_" but they are actually named that way ("inst_something").
- #
- # @example ["aa", "inst_bb"] -> ["inst_aa", "inst_bb"]
- def NormalizeScriptNames(names)
- names = deep_copy(names)
- ret_names = []
-
- Builtins.foreach(names) do |one_name|
- if Builtins.regexpmatch(one_name, "^inst_")
- ret_names = Builtins.add(ret_names, one_name)
- else
- ret_names = Builtins.add(ret_names, Ops.add("inst_", one_name))
- end
- end
-
- deep_copy(ret_names)
- end
-
- # Similar to NormalizeScriptNames but it add "_proposal" instead if "inst_".
- #
- # @example ["aa", "bb_proposal"] -> ["aa_proposal", "bb_proposal"]
- def NormalizeProposalNames(names)
- names = deep_copy(names)
- ret_names = []
-
- Builtins.foreach(names) do |one_name|
- if Builtins.regexpmatch(one_name, "_proposal$")
- ret_names = Builtins.add(ret_names, one_name)
- else
- ret_names = Builtins.add(ret_names, Ops.add(one_name, "_proposal"))
- end
- end
-
- deep_copy(ret_names)
- end
-
- def HandleExceptions(proposal_name)
- if proposal_name == "x11_proposal" || proposal_name == "x11"
- if !UI.TextMode
- Builtins.y2milestone("Printing >don't panic true }])
- Progress.set(progress_before)
- Builtins.y2milestone("Script %1 returned %2", one_script, result)
- @last_client = one_script
- end
-
- nil
- end
-
- def CallProposals(proposals_to_call)
- proposals_to_call = deep_copy(proposals_to_call)
- Builtins.y2milestone("Scripts to call: %1", proposals_to_call)
-
- proposals_to_call = NormalizeProposalNames(proposals_to_call)
-
- Builtins.foreach(proposals_to_call) do |one_proposal|
- Builtins.y2milestone("Calling script %1 MakeProposal", one_proposal)
- @current_client = one_proposal
- NextStep()
- progress_before = Progress.set(false)
- HandleExceptions(one_proposal)
- result = @test_mode ?
- DummyFunction() :
- WFM.CallFunction(
- one_proposal,
- ["MakeProposal", { "AutomaticConfiguration" => true }]
- )
- Progress.set(progress_before)
- Builtins.y2milestone("Script %1 returned %2", one_proposal, result)
- @last_client = one_proposal
- end
-
- Builtins.foreach(proposals_to_call) do |one_proposal|
- Builtins.y2milestone("Calling script %1 Write", one_proposal)
- @current_client = one_proposal
- NextStep()
- progress_before = Progress.set(false)
- result = @test_mode ?
- DummyFunction() :
- WFM.CallFunction(
- one_proposal,
- ["Write", { "AutomaticConfiguration" => true }]
- )
- Builtins.y2milestone("Script %1 returned %2", one_proposal, result)
- @last_client = one_proposal
- end
-
- nil
- end
- end
-end
-
-Yast::InstAutomaticConfigurationClient.new.main
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/src/clients/inst_initialization.rb new/yast2-installation-3.1.7/src/clients/inst_initialization.rb
--- old/yast2-installation-3.1.6/src/clients/inst_initialization.rb 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/src/clients/inst_initialization.rb 2013-11-21 11:35:01.000000000 +0100
@@ -37,12 +37,6 @@
Yast.import "Wizard"
Yast.import "Stage"
- Yast.import "GetInstArgs"
-
- if GetInstArgs.automatic_configuration
- Builtins.y2milestone("Automatic configuration...")
- return :auto
- end
# TRANSLATORS: dialog help
@helptext = _("Installation is being initialized.")
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/src/clients/installation_settings_finish.rb new/yast2-installation-3.1.7/src/clients/installation_settings_finish.rb
--- old/yast2-installation-3.1.6/src/clients/installation_settings_finish.rb 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/src/clients/installation_settings_finish.rb 2013-11-21 11:35:01.000000000 +0100
@@ -131,21 +131,6 @@
Builtins.y2error("Cannot write disabled subproposals")
end
- Builtins.y2milestone(
- "Writing disabled AC items %1 into %2",
- ProductControl.GetDisabledACItems,
- InstData.wizardsteps_disabled_ac_items
- )
-
- if SCR.Write(
- path(".target.ycp"),
- InstData.wizardsteps_disabled_ac_items,
- ProductControl.GetDisabledACItems
- ) != true
- Builtins.y2error("Cannot write disabled AC items")
- end
-
-
Builtins.y2milestone("Anyway, successful")
nil
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/src/include/installation/inst_inc_second.rb new/yast2-installation-3.1.7/src/include/installation/inst_inc_second.rb
--- old/yast2-installation-3.1.6/src/include/installation/inst_inc_second.rb 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/src/include/installation/inst_inc_second.rb 2013-11-21 11:35:01.000000000 +0100
@@ -178,52 +178,11 @@
nil
end
- def AdjustDisabledACItems
- if InstData.wizardsteps_disabled_ac_items == nil
- Builtins.y2error("Disabled AC items file not defined")
- return
- end
-
- if !FileUtils.Exists(InstData.wizardsteps_disabled_ac_items)
- Builtins.y2milestone(
- "File %1 doesn't exist, skipping...",
- InstData.wizardsteps_disabled_ac_items
- )
- return
- end
-
- disabled_ac_items = Convert.convert(
- SCR.Read(path(".target.ycp"), InstData.wizardsteps_disabled_ac_items),
- :from => "any",
- :to => "map "
- )
- if disabled_ac_items == nil
- Builtins.y2error(
- "Error reading %1",
- InstData.wizardsteps_disabled_ac_items
- )
- return
- end
-
- Builtins.foreach(disabled_ac_items) do |unique_id, ac_steps|
- Builtins.foreach(ac_steps) do |one_ac_step|
- ProductControl.DisableACItem(unique_id, one_ac_step)
- end
- end
-
- Builtins.y2milestone(
- "Disabled AC items set to %1",
- ProductControl.GetDisabledACItems
- )
-
- nil
- end
def AdjustDisabledItems
AdjustDisabledModules()
AdjustDisabledProposals()
AdjustDisabledSubProposals()
- AdjustDisabledACItems()
nil
end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/yast2-installation-3.1.6/src/modules/InstData.rb new/yast2-installation-3.1.7/src/modules/InstData.rb
--- old/yast2-installation-3.1.6/src/modules/InstData.rb 2013-11-19 13:46:10.000000000 +0100
+++ new/yast2-installation-3.1.7/src/modules/InstData.rb 2013-11-21 11:35:01.000000000 +0100
@@ -73,11 +73,6 @@
Directory.vardir,
"/installation_disabled_subproposals"
)
- @wizardsteps_disabled_ac_items = Ops.add(
- Directory.vardir,
- "/installation_disabled_acs"
- )
-
# temporary variables for disabling and enabling steps
@localDisabledModules = []
@localDisabledProposals = []
@@ -105,7 +100,6 @@
publish :variable => :wizardsteps_disabled_modules, :type => "string"
publish :variable => :wizardsteps_disabled_proposals, :type => "string"
publish :variable => :wizardsteps_disabled_subproposals, :type => "string"
- publish :variable => :wizardsteps_disabled_ac_items, :type => "string"
publish :variable => :localDisabledModules, :type => "list <string>"
publish :variable => :localDisabledProposals, :type => "list <string>"
publish :variable => :copy_files_use_control_file, :type => "boolean"
--
To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org
For additional commands, e-mail: opensuse-commit+help@opensuse.org