Skip to content

Commit

Permalink
Revert "Revert "Save the software selection for using it later in Aut…
Browse files Browse the repository at this point in the history
…oYaST (bsc#956325, bsc#910728)""

This reverts commit 5e58fc8.
  • Loading branch information
jreidinger committed Nov 26, 2015
1 parent fd6456f commit 0e53aac
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Nov 26 13:15:19 UTC 2015 - lslezak@suse.cz

- Save the software selection for using it later in AutoYaST
when deploying installation images (bsc#956325, bsc#910728)
- 3.1.162.2

-------------------------------------------------------------------
Thu Nov 26 09:09:59 UTC 2015 - jreidinger@suse.com

Expand Down
6 changes: 3 additions & 3 deletions package/yast2-installation.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-installation
Version: 3.1.162.1
Version: 3.1.162.2
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand All @@ -43,8 +43,8 @@ BuildRequires: yast2 >= 3.1.126
# Yast::Remote
BuildRequires: yast2-network

# clone_system client
Requires: autoyast2-installation >= 3.1.5
# AutoinstSoftware.SavePackageSelection()
Requires: autoyast2-installation >= 3.1.101.3

# Wizard.OpenLeftTitleNextBackDialog
Requires: yast2 >= 3.1.126
Expand Down
12 changes: 12 additions & 0 deletions src/lib/installation/clients/inst_deploy_image.rb
Expand Up @@ -18,8 +18,13 @@
# To contact Novell about this file by physical or electronic mail, you may find
# current contact information at www.novell.com.
# ------------------------------------------------------------------------------

require "installation/clone_settings"

module Yast
class InstDeployImageClient < Client
include Yast::Logger

def main
Yast.import "Pkg"
Yast.import "Installation"
Expand Down Expand Up @@ -55,6 +60,13 @@ def main
end
end

if ::Installation::CloneSettings.instance.enabled?
log.info "Cloning enabled, storing the current package selection"
# store the software selection for AutoYaST for later (bsc#956325)
Yast.import "AutoinstSoftware"
AutoinstSoftware.SavePackageSelection
end

Builtins.y2milestone("Deploying images")

SlideShow.MoveToStage("images")
Expand Down

0 comments on commit 0e53aac

Please sign in to comment.