pmbootstrap init: migrate work dir if necessary (!1845)

This should have already happened, but probably broke when splitting
pmaports into a separate git repository.
This commit is contained in:
Oliver Smith 2019-12-22 11:30:51 +01:00
parent b1cb662645
commit a38026f98e
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 4 additions and 0 deletions

View File

@ -26,6 +26,7 @@ import pmb.config.pmaports
import pmb.helpers.cli
import pmb.helpers.devices
import pmb.helpers.logging
import pmb.helpers.other
import pmb.helpers.run
import pmb.helpers.ui
import pmb.chroot.zap
@ -368,6 +369,9 @@ def frontend(args):
pmb.helpers.args.update_work(args, work)
pmb.config.save(args, cfg)
# Migrate work dir if necessary
pmb.helpers.other.migrate_work_folder(args)
# Clone pmaports
pmb.config.pmaports.init(args)