Merge "stx tool: Update the check for the build image task"
This commit is contained in:
commit
43b15d6d9f
|
@ -32,7 +32,7 @@ class HandleBuildTask:
|
|||
def buildImageCMD(self, args, prefixcmd):
|
||||
|
||||
if args.type:
|
||||
if (args.type != 'rt' and args.type != 'std'):
|
||||
if args.type not in ['rt', 'std']:
|
||||
self.logger.error('Option -t for generaing image only should \
|
||||
be [ rt|std ]')
|
||||
self.logger.error('Please use "stx build -h" to show the help\
|
||||
|
|
|
@ -105,7 +105,7 @@ image.\t\teg: [ prepare|distro|image|${pkgname}]')
|
|||
', action='store_true', required=False)
|
||||
build_subparser.add_argument('-t', '--type',
|
||||
help='[ rt|std ]: Select the kernel type.\
|
||||
', nargs=1, required=False)
|
||||
', required=False)
|
||||
build_subparser.set_defaults(handle=self.handlebuild.handleBuild)
|
||||
|
||||
repo_subparser = subparsers.add_parser('repomgr',
|
||||
|
|
Loading…
Reference in New Issue