Skip to content

Commit

Permalink
Adapt ProductSelection dialog to new merge_product_workflow method
Browse files Browse the repository at this point in the history
  • Loading branch information
imobachgs committed Sep 1, 2017
1 parent 82e0dc0 commit 511b959
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/lib/installation/dialogs/product_selection.rb
Expand Up @@ -41,15 +41,7 @@ def run
res = super
return res if res != :next

# remove already selected if it is not first run of dialog
if self.class.selected_package
Yast::WorkflowManager.RemoveWorkflow(:package, 0, self.class.selected_package)
end
product = selector.product
Yast::WorkflowManager.AddWorkflow(:package, 0, product.installation_package)
Yast::WorkflowManager.MergeWorkflows
Yast::WorkflowManager.RedrawWizardSteps
self.class.selected_package = product.installation_package
Yast::WorkflowManager.merge_product_workflow(product)
# run new steps for product
Yast::ProductControl.RunFrom(Yast::ProductControl.CurrentStep + 1, true)
end
Expand Down

0 comments on commit 511b959

Please sign in to comment.