All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] support/scripts/pkg-stats: fix flake8 E741 ambiguous variable name
Date: Tue, 18 May 2021 21:07:23 +0200	[thread overview]
Message-ID: <20210518190723.GX2506@scaer> (raw)
In-Reply-To: <20210518182155.47055-1-matthew.weber@collins.com>

Matthew, All,

On 2021-05-18 13:21 -0500, Matthew Weber via buildroot spake thusly:
> Signed-off-by: Matthew Weber <matthew.weber@collins.com>

Applied to master, thanks.

Regards,
Yann E. MORIN.

> ---
>  support/scripts/pkg-stats | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats
> index c7e30dfd2b..0cd3674c52 100755
> --- a/support/scripts/pkg-stats
> +++ b/support/scripts/pkg-stats
> @@ -375,9 +375,9 @@ def package_init_make_info():
>      variable_list = [x[5:] for x in variable_list if x.startswith("HOST_")] + \
>                      [x for x in variable_list if not x.startswith("HOST_")]
>  
> -    for l in variable_list:
> +    for item in variable_list:
>          # Get variable name and value
> -        pkgvar, value = l.split("=")
> +        pkgvar, value = item.split("=")
>  
>          # Strip the suffix according to the variable
>          if pkgvar.endswith("_LICENSE"):
> -- 
> 2.17.1
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

  parent reply	other threads:[~2021-05-18 19:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-18 18:21 [Buildroot] [PATCH 1/3] support/scripts/pkg-stats: fix flake8 E741 ambiguous variable name Matthew Weber
2021-05-18 18:21 ` [Buildroot] [PATCH 2/3] support/scripts/pkg-stats: add is_actual_package() and rework has_valid_infra() Matthew Weber
2021-05-18 18:21 ` [Buildroot] [PATCH 3/3] support/scripts/pkg-stats: clarify when a CVE/CPE should report as N/A Matthew Weber
2021-05-18 20:16   ` Yann E. MORIN
2021-05-19  1:20     ` [Buildroot] [External] " Weber, Matthew L Collins
2021-05-18 19:07 ` Yann E. MORIN [this message]
2021-05-20  9:26 ` [Buildroot] [PATCH 1/3] support/scripts/pkg-stats: fix flake8 E741 ambiguous variable name Peter Korsgaard

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=20210518190723.GX2506@scaer \
    --to=yann.morin.1998@free.fr \
    --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.