checkpackagelib/lib_config.py: check packages alphabetical order in {Config.in, Confi...
authorJerzy Grzegorek <jerzy.m.grzegorek@gmail.com>
Tue, 11 Jun 2019 20:49:46 +0000 (22:49 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 13 Jul 2019 22:21:26 +0000 (00:21 +0200)
commite36a63cf6b325f76ad62c1e06b8a6d4fb4c9f062
tree9d8441ad3657d002cef79e0fc712820ba06d92a3
parent4e655134cd6043323d65118960c140f80480869d
checkpackagelib/lib_config.py: check packages alphabetical order in {Config.in, Config.in.host}

Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com>
[Arnout:
 - calculate level by counting - instead of with a static array;
 - new_package is only used locally, so don't make it a class member;
 - do indentation according to length of prefix;
 - don't split string in the middle of a line;
 - report first wrong package per menu;
 - do replace() only once;
 - add comment why we do replace().
]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
utils/checkpackagelib/lib_config.py