vppapigen: crcchecker: harmonize the in_progress marking
The format for deprecation is "option deprecated" now, so harmonize the in-progress marking to logically be "option in_progress" At the same time recognize the legacy/erroneous types of marking, print the warning. Change-Id: If418dfadd69ffb112550164d63d13420e51cefd7 Type: fix Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
This commit is contained in:

committed by
Ole Tr�an

parent
5b7ea9122e
commit
6a3d4cc9a1
@@ -96,16 +96,24 @@ def filelist_from_patchset():
|
||||
return set(filelist)
|
||||
|
||||
def is_deprecated(d, k):
|
||||
if 'options' in d[k] and 'deprecated' in d[k]['options']:
|
||||
return True
|
||||
if 'options' in d[k]:
|
||||
if 'deprecated' in d[k]['options']:
|
||||
return True
|
||||
# recognize the deprecated format
|
||||
if 'status' in d[k]['options'] and d[k]['options']['status'] == 'deprecated':
|
||||
print("WARNING: please use 'option deprecated;'")
|
||||
return True
|
||||
return False
|
||||
|
||||
def is_in_progress(d, k):
|
||||
try:
|
||||
if d[k]['options']['status'] == 'in_progress':
|
||||
if 'options' in d[k]:
|
||||
if 'in_progress' in d[k]['options']:
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
# recognize the deprecated format
|
||||
if 'status' in d[k]['options'] and d[k]['options']['status'] == 'in_progress':
|
||||
print("WARNING: please use 'option in_progress;'")
|
||||
return True
|
||||
return False
|
||||
|
||||
def report(new, old):
|
||||
added, removed, modified, same = dict_compare(new, old)
|
||||
|
Reference in New Issue
Block a user