Added flavor to the flash_system command for consistency, This fixes issue #133

This commit is contained in:
Martijn Braam 2017-07-05 13:39:50 +02:00
parent 48ffe79051
commit d16c90b39c
1 changed files with 2 additions and 1 deletions

View File

@ -73,6 +73,7 @@ def list_flavors(args):
def system(args):
# Generate system image, install flasher
flavor = parse_flavor_arg(args)
img_path = "/home/user/rootfs/" + args.device + ".img"
if not os.path.exists(args.work + "/chroot_native" + img_path):
setattr(args, "sdcard", None)
@ -81,7 +82,7 @@ def system(args):
# Run the flasher
logging.info("(native) flash system image")
pmb.flasher.run(args, "flash_system")
pmb.flasher.run(args, "flash_system", flavor)
def list_devices(args):