Skip to content

Commit

Permalink
Merge 554566e into 4ce32cb
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed May 18, 2021
2 parents 4ce32cb + 554566e commit 4d1b1eb
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
7 changes: 7 additions & 0 deletions package/yast2-migration.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed May 12 08:53:10 UTC 2021 - Ladislav Slezák <lslezak@suse.cz>

- Show the new base product license in online migration
(bsc#1185808)
- 4.3.0

-------------------------------------------------------------------
Tue Nov 19 12:00:26 CET 2019 - schubi@suse.de

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-migration.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-migration
Version: 4.2.4
Version: 4.3.0
Release: 0
Summary: YaST2 - Online migration
Group: System/YaST
Expand Down
12 changes: 11 additions & 1 deletion src/lib/migration/main_workflow.rb
Expand Up @@ -103,7 +103,11 @@ def run
"repositories" => {
abort: :abort,
rollback: "rollback",
next: "proposals"
next: "license"
},
"license" => {
abort: "rollback",
next: "proposals"
},
"proposals" => {
abort: "rollback",
Expand Down Expand Up @@ -146,6 +150,7 @@ def aliases
"perform_migration" => ->() { perform_migration },
"proposals" => ->() { proposals },
"repositories" => ->() { repositories },
"license" => ->() { license },
"restart_after_migration" => ->() { restart_yast(:restart_after_migration) },
# note: the steps after the YaST restart use the new code from
# the updated (migrated) yast2-migration package!!
Expand Down Expand Up @@ -198,6 +203,11 @@ def repositories
Yast::WFM.CallFunction("migration_repos", [{ "enable_back" => false }])
end

# display license for the new base product
def license
Yast::WFM.CallFunction("inst_product_upgrade_license", [{ "enable_back" => false }])
end

def proposals
Yast::WFM.CallFunction("migration_proposals", [{ "hide_export" => true }])
end
Expand Down
1 change: 1 addition & 0 deletions test/main_workflow_test.rb
Expand Up @@ -35,6 +35,7 @@ def mock_client(name, res)

before do
mock_client(["migration_repos", [{ "enable_back" => false }]], :next)
mock_client(["inst_product_upgrade_license", [{ "enable_back" => false }]], :next)
mock_client(["migration_proposals", [{ "hide_export" => true }]], :next)
mock_client("inst_prepareprogress", :next)
mock_client("inst_kickoff", :next)
Expand Down

0 comments on commit 4d1b1eb

Please sign in to comment.