#NEWLINE# def do( args ) : #NEWLINE# #INDENT# 'Convert a binary archive into a qiBuild package.\n\n    ' #NEWLINE# name = args . name #NEWLINE# interactive = args . interactive #NEWLINE# package_path = args . package_path #NEWLINE# ui . info ( 'Converting' , package_path , 'into a qiBuild package' ) #NEWLINE# res = convert_package ( package_path , name , interactive = interactive ) #NEWLINE# message = 'Conversion succeeded.\n\nqiBuild package:\n  {0}\n\nYou can add this qiBuild package to a toolchain using:\n  qitoolchain add-package -c <toolchain name> {0}' . format ( res ) #NEWLINE# qisys . ui . info ( message ) #NEWLINE# return res