forked from Mirror/pmbootstrap
pmb.flasher.init.install_depends: new function
Move logic to install depends into one shared function.
This commit is contained in:
parent
04f8f59208
commit
b64641bb1c
3 changed files with 7 additions and 8 deletions
|
@ -88,11 +88,8 @@ def list_devices(args):
|
|||
|
||||
|
||||
def sideload(args):
|
||||
method = args.flash_method or args.deviceinfo["flash_method"]
|
||||
cfg = pmb.config.flashers[method]
|
||||
|
||||
# Install depends
|
||||
pmb.chroot.apk.install(args, cfg["depends"])
|
||||
pmb.flasher.install_depends(args)
|
||||
|
||||
# Mount the buildroot
|
||||
suffix = "buildroot_" + args.deviceinfo["arch"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue