scripts: blobs: add auto-accept option for license click-through
Added auto-accept option for license click-through. Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
This commit is contained in:
parent
e1b5b8b5f9
commit
600cae64c2
1 changed files with 5 additions and 1 deletions
|
@ -77,6 +77,10 @@ class Blobs(WestCommand):
|
|||
help='''format string to use to list each blob;
|
||||
see FORMAT STRINGS below''')
|
||||
|
||||
group = parser.add_argument_group('west blobs fetch options')
|
||||
group.add_argument('-a', '--auto-accept', action='store_true',
|
||||
help='''auto accept license if the fetching needs click-through''')
|
||||
|
||||
return parser
|
||||
|
||||
def get_blobs(self, args):
|
||||
|
@ -154,7 +158,7 @@ class Blobs(WestCommand):
|
|||
continue
|
||||
self.inf('Fetching blob {module}: {abspath}'.format(**blob))
|
||||
|
||||
if blob['click-through']:
|
||||
if blob['click-through'] and not args.auto_accept:
|
||||
while True:
|
||||
user_input = input("For this blob, need to read and accept "
|
||||
"license to continue. Read it?\n"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue