Skip to content
Snippets Groups Projects

migrate_work_folder: print suffix "-2.x" and skip updating the git URL twice

Merged Oliver Smith requested to merge ollieparanoid/pmbootstrap:migration-tweaks into master
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
+ 8
2
@@ -116,8 +116,14 @@ def migrate_work_folder():
pmb.chroot.zap(False)
# Update version file
migrate_success(context.config.work, 7)
current = 7
if suffix == "2.x":
# If we come from 7-2.x, then we already updated the git urls and
# can skip the 7->8 migration step
migrate_success(context.config.work, 8)
current = 8
else:
migrate_success(context.config.work, 7)
current = 7
if current == 7:
# Ask for confirmation
Loading