Skip to content

Commit

Permalink
do not depend on yast2-installation (bsc#876533)
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Oct 31, 2018
1 parent 4aa3898 commit 7a01234
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/lib/y2packager/clients/inst_productsources.rb
Expand Up @@ -93,8 +93,6 @@ class InstProductsourcesClient < Client
def main
textdomain "packager"

Yast.include self, "installation/misc.rb"

if AddOnProduct.skip_add_ons
Builtins.y2milestone("Skipping module (as requested before)")
return :auto
Expand Down Expand Up @@ -1623,7 +1621,7 @@ def WriteDialog

# Redraw installation wizard
if Stage.initial
UpdateWizardSteps()
update_wizard_steps
# Store repositories
else
Pkg.SourceSaveAll
Expand Down Expand Up @@ -1722,5 +1720,21 @@ def fallback_alias(url)

alias_name
end

# Copy from installation/misc.rb to avoid dependency on yast2-installation (bsc#876533)
def update_wizard_steps
wizard_mode = Mode.mode
Builtins.y2milestone("Switching Steps to %1 ", wizard_mode)

stage_mode = [
{ "stage" => "initial", "mode" => wizard_mode },
{ "stage" => "continue", "mode" => wizard_mode }
]
Builtins.y2milestone("Updating wizard steps: %1", stage_mode)

ProductControl.UpdateWizardSteps(stage_mode)

nil
end
end
end

0 comments on commit 7a01234

Please sign in to comment.