Skip to content

Commit

Permalink
add step to perform upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
jreidinger committed Apr 3, 2015
1 parent 3f47299 commit 92d4be9
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/lib/migration/main_workflow.rb
Expand Up @@ -51,18 +51,20 @@ def run
},
"proposals" => {
abort: "restore",
next: :next
next: "perform_update"
},
"perform_update" => {},
"restore" => {
abort: :abort
}
}

def aliases
{
"restore" => ->() { restore_state },
"repositories" => ->() { repositories },
"proposals" => ->() { proposals }
"restore" => ->() { restore_state },
"repositories" => ->() { repositories },
"proposals" => ->() { proposals },
"perform_update" => ->() { perform_update }
}
end

Expand All @@ -81,5 +83,11 @@ def repositories
def proposals
Yast::WFM.CallFunction("migration_proposals")
end

def perform_update
Yast::WFM.CallFunction("inst_prepareprogress")
Yast::WFM.CallFunction("inst_kickoff")
Yast::WFM.CallFunction("inst_rpmcopy")
end
end
end

0 comments on commit 92d4be9

Please sign in to comment.