Skip to content

Commit 940fbe7

Browse files
committed
Use download-in-advance mode for zypper migration
This reduces the risk of download problems while inside of the upgrade process. This Fixes jira#PCT-1170
1 parent 6c7575b commit 940fbe7

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

suse_migration_services/units/migrate.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ def perform(self):
7979
'--no-selfupdate',
8080
'--auto-agree-with-licenses',
8181
'--allow-vendor-change',
82+
'--download',
83+
'in-advance',
8284
'--strict-errors-dist-migration',
8385
'--replacefiles',
8486
'--product',

test/unit/units/migrate_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ def test_main_zypper_migration_plugin(
141141
'--no-selfupdate',
142142
'--auto-agree-with-licenses',
143143
'--allow-vendor-change',
144+
'--download',
145+
'in-advance',
144146
'--strict-errors-dist-migration',
145147
'--replacefiles',
146148
'--product',
@@ -182,6 +184,8 @@ def test_main_zypper_migration_plugin_verbose(
182184
'--no-selfupdate',
183185
'--auto-agree-with-licenses',
184186
'--allow-vendor-change',
187+
'--download',
188+
'in-advance',
185189
'--strict-errors-dist-migration',
186190
'--replacefiles',
187191
'--product',
@@ -223,6 +227,8 @@ def test_main_zypper_migration_plugin_solver_case(
223227
'--no-selfupdate',
224228
'--auto-agree-with-licenses',
225229
'--allow-vendor-change',
230+
'--download',
231+
'in-advance',
226232
'--strict-errors-dist-migration',
227233
'--replacefiles',
228234
'--product',

0 commit comments

Comments
 (0)