Skip to contentSkip to conversation

Improve alphabetical order checking of Config.in files

PATCH New Jerzy Grzegorek 2 participants 3 messages Sep 3, 2019 – Sep 25, 2019

lore
Share & tools
lore
#0 lore raw

cover Improve alphabetical order checking of Config.in files

The main purpose of this patch series is to improve alphabetical order checking of comments, menus and packages in Config.in files. Patches 1-11 are preliminary ones and add small improvements. Patches 12, 14, 15 do the main work.
Patches 13, 16-18 fix issues in Config.in files.

Jerzy Grzegorek (18):
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: rename
variable 'm'
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: change the
type of variable 'level'
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: get value
of variable 'level'
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: add
functions to initialize arrays elements
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: change the
type of variable 'new_package'
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: remove
'-comment' state before the '-menu' one
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: separate
the lines support
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: use '-' to
describe state
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: drop
function get_line
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: initialize
'menu_of_packages' array
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: add more
Config.in files to check
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check
package ordering just before 'if ' statement
package/Config.in: fix packages ordering checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check the
order of comments menu
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check the
order of menu of menus
package/Config.in: fix menus ordering package/kodi/Config.in: fix menus ordering package/kodi/Config.in: fix menus ordering

 package/Config.in                   |  72 +++++------
 package/kodi/Config.in              |  16 +--
 utils/checkpackagelib/lib_config.py | 184 ++++++++++++++++++++++------
 3 files changed, 190 insertions(+), 82 deletions(-)
Signature · 1 line
2.17.1
#1 lore raw

cover Improve alphabetical order checking of Config.in files

Hello,

Thank you for working on this.

Quoted 6 lines · Jerzy Grzegorek

The main purpose of this patch series is to improve alphabetical order checking of comments, menus and packages in Config.in files. Patches 1-11 are preliminary ones and add small improvements.

Patches 12, 14, 15 do the main work.
Patches 13, 16-18 fix issues in Config.in files.

I completely understand why you developed the patches in this order. But usually when applying changes in the script that imply fixes/changes in other files, we do apply the other way around. First fixes, then the script that detect the error just corrected.

Quoted 4 lines

Jerzy Grzegorek (18):
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: rename
variable 'm'

Here and in many more patches I guess a better prefix for the subject would be:
utils/checkpackagelib:

Regards,
Ricardo

#2 lore raw

cover Improve alphabetical order checking of Config.in files

Hi Ricardo,

Quoted 11 lines

Hello,

Thank you for working on this.

Quoted 5 lines · Jerzy Grzegorek

The main purpose of this patch series is to improve alphabetical order checking of comments, menus and packages in Config.in files. Patches 1-11 are preliminary ones and add small improvements. Patches 12, 14, 15 do the main work.
Patches 13, 16-18 fix issues in Config.in files.

Quoted 4 lines

I completely understand why you developed the patches in this order. But usually when applying changes in the script that imply fixes/changes in other files, we do apply the other way around. First fixes, then the script that detect the error just corrected.

Yes, you are right, but I had no idea about these errors. They appeared after improving this script.

Thank you for the review.

Regards,
Jerzy

Quoted 9 lines
Quoted 3 lines

Jerzy Grzegorek (18):
checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: rename
variable 'm'

Here and in many more patches I guess a better prefix for the subject would be:
utils/checkpackagelib:

Regards,
Ricardo