All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 01/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: rename variable 'm'
Date: Mon, 23 Sep 2019 23:17:20 +0200	[thread overview]
Message-ID: <20190923231720.43fa85aa@windsurf> (raw)
In-Reply-To: <20190903211341.10341-1-jerzy.m.grzegorek@gmail.com>

Hello Ricardo,

Do you think you could review this patch series that touches
checkpackagelib ? It would be very useful to have your feedback.

Thanks a lot!

Thomas

On Tue,  3 Sep 2019 23:13:24 +0200
Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com> wrote:

> Rename variable 'm' for better readability.
> 
> Signed-off-by: Jerzy Grzegorek <jerzy.m.grzegorek@gmail.com>
> Cc: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
> ---
>  utils/checkpackagelib/lib_config.py | 7 ++++---
>  1 file changed, 4 insertions(+), 3 deletions(-)
> 
> diff --git a/utils/checkpackagelib/lib_config.py b/utils/checkpackagelib/lib_config.py
> index 225f92af13..a3fbd0e69e 100644
> --- a/utils/checkpackagelib/lib_config.py
> +++ b/utils/checkpackagelib/lib_config.py
> @@ -77,7 +77,8 @@ class CommentsMenusPackagesOrder(_CheckFunction):
>                                   "package/Config.in.host"]:
>              return
>  
> -        m = re.match(r'^\s*source ".*/([^/]*)/Config.in(.host)?"', text)
> +        source_line = re.match(r'^\s*source ".*/([^/]*)/Config.in(.host)?"', text)
> +
>          if text.startswith("comment ") or text.startswith("if ") or \
>             text.startswith("menu "):
>  
> @@ -113,9 +114,9 @@ class CommentsMenusPackagesOrder(_CheckFunction):
>              elif text.startswith("endmenu"):
>                  self.state = self.state[:-5]
>  
> -        elif m:
> +        elif source_line:
>              level = self.get_level()
> -            new_package = m.group(1)
> +            new_package = source_line.group(1)
>  
>              # We order _ before A, so replace it with .
>              new_package_ord = new_package.replace('_', '.')



-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

  parent reply	other threads:[~2019-09-23 21:17 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-03 21:13 [Buildroot] [PATCH 01/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: rename variable 'm' Jerzy Grzegorek
2019-09-03 21:13 ` [Buildroot] [PATCH 02/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: change the type of variable 'level' Jerzy Grzegorek
2019-09-25  2:03   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 03/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: get value " Jerzy Grzegorek
2019-09-25  2:05   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 04/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: add functions to initialize arrays elements Jerzy Grzegorek
2019-09-25  2:07   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 05/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: change the type of variable 'new_package' Jerzy Grzegorek
2019-09-25  2:08   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 06/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: remove '-comment' state before the '-menu' one Jerzy Grzegorek
2019-10-04  2:27   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 07/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: separate the lines support Jerzy Grzegorek
2019-10-04  2:27   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 08/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: use '-' to describe state Jerzy Grzegorek
2019-09-03 21:13 ` [Buildroot] [PATCH 09/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: drop function get_line Jerzy Grzegorek
2019-10-04  2:28   ` Ricardo Martincoski
2019-10-04  6:52     ` Jerzy Grzegorek
2019-09-03 21:13 ` [Buildroot] [PATCH 10/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: initialize 'menu_of_packages' array Jerzy Grzegorek
2019-10-04  2:28   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 11/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: add more Config.in files to check Jerzy Grzegorek
2019-10-04  2:29   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 12/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check package ordering just before 'if ' statement Jerzy Grzegorek
2019-09-03 21:13 ` [Buildroot] [PATCH 13/18] package/Config.in: fix packages ordering Jerzy Grzegorek
2019-09-03 21:13 ` [Buildroot] [PATCH 14/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check the order of comments menu Jerzy Grzegorek
2019-09-25  2:14   ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 15/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: check the order of menu of menus Jerzy Grzegorek
2019-09-25  2:19   ` Ricardo Martincoski
2019-09-25  8:01     ` Jerzy Grzegorek
2019-10-04  2:26       ` Ricardo Martincoski
2019-09-03 21:13 ` [Buildroot] [PATCH 16/18] package/Config.in: fix menus ordering Jerzy Grzegorek
2019-09-03 21:13 ` [Buildroot] [PATCH 17/18] package/kodi/Config.in: " Jerzy Grzegorek
2019-09-03 21:13 ` [Buildroot] [PATCH 18/18] " Jerzy Grzegorek
2019-09-23 21:17 ` Thomas Petazzoni [this message]
2019-09-24  2:28   ` [Buildroot] [PATCH 01/18] checkpackagelib/lib_config.py: CommentsMenusPackagesOrder: rename variable 'm' Ricardo Martincoski
2019-09-24  2:32 ` Ricardo Martincoski
2019-09-25 20:26 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190923231720.43fa85aa@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.