mbox series

[00/18] Improve alphabetical order checking of Config.in files

Message ID 20190903210351.9997-1-jerzy.m.grzegorek@gmail.com
Headers show
Series Improve alphabetical order checking of Config.in files | expand

Message

Jerzy Grzegorek Sept. 3, 2019, 9:03 p.m. UTC
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(-)

Comments

Ricardo Martincoski Sept. 25, 2019, 2:13 a.m. UTC | #1
Hello,

Thank you for working on this.

On Tue, Sep 03, 2019 at 06:03 PM, Jerzy Grzegorek wrote:

> 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.

> 
> 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
Jerzy Grzegorek Sept. 25, 2019, 8:05 a.m. UTC | #2
Hi Ricardo,

> Hello,
>
> Thank you for working on this.
>
> On Tue, Sep 03, 2019 at 06:03 PM, Jerzy Grzegorek wrote:
>
>> 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.


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


>> 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