From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 04/20 RFC] support/gen-manual-lists.py: rework generating the virtual package list
Date: Sun, 15 Jun 2014 23:06:17 +0200 [thread overview]
Message-ID: <20140615210617.GE3568@free.fr> (raw)
In-Reply-To: <CAHXCMM+yNGSNEpSwz6BxkCyKo9Kwi3ERyoYGnuNZ9c=KDgNh7g@mail.gmail.com>
Samuel, All,
On 2014-06-15 22:18 +0200, Samuel Martin spake thusly:
> On Sat, Jun 14, 2014 at 1:02 AM, Yann E. MORIN <yann.morin.1998@free.fr> wrote:
> > From: "Yann E. MORIN" <yann.morin.1998@free.fr>
[--SNIP a lot of typoes--]
OK, will fix all of those.
> > Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> > ---
> > support/scripts/gen-manual-lists.py | 88 +++++++++++++++++++++++++++++++------
> > 1 file changed, 74 insertions(+), 14 deletions(-)
> >
> > diff --git a/support/scripts/gen-manual-lists.py b/support/scripts/gen-manual-lists.py
> > index 95c10dc..837cd66 100644
> > --- a/support/scripts/gen-manual-lists.py
> > +++ b/support/scripts/gen-manual-lists.py
[--SNIP yet another bunch of typoes--]
OK, will fix.
> > + if parent_pkg is not None:
> > + providers_syms_w_opts.append( (parent_pkg,sym) )
> space after ','
I was wondering what was the coding rule when an argument is a tuple.
Usually, we do not have a space after anopening brace, or before a
closing brace. But it looks strange when the (only) arg is a tuple.
Should I write:
.append( (parent_pkg, sym) )
or:
.append((parent_pkg, sym))
?
> > + # Finally, complete with the list of providers without option
> > + for p in providers_syms:
> > + if p in seen:
> > + continue
> > + _p = re.sub(r"^BR2_PACKAGE_(.*)", r"\1", p.get_name()).lower()
> > + providers_str.append(_p)
> hum... here, you _p is the low-case symbol name (without the
> BR2_PACKAGE_ prefix), not exactly the package name (e.g. for
> rpi-userland, you get "rpi_userland",= instead of "rpi-userland"). Or
> am I missing something?
Doh. That's right... Good catch. I'll (try to) fix that.
> > +
> > + return providers_str
> > +
> > + # This functions return a list of all symbols that have a prompt,
> > + # and that 'select' the given symbol
> > + def _get_selecting_symbols_with_prompt(symbol):
> It's a bit weird to have the definition of this function after you use
> it (in the previous on), but python allows this ;-)
Well, do we want all functions to be defined before (code-wise) we call
them, or do we prefer to have the important functions come first?
I usually tend to the latter. But I'll move the functions.
Thank you for the reviews! :-)
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2014-06-15 21:06 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-06-13 23:02 [Buildroot] [PATCH 0/20 v2 RFC] Introduce libudev (branch yem/libudev) Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 01/20 RFC] package/xbmc: remove spurious build-dependency on udev Yann E. MORIN
2014-07-11 20:14 ` Bernd Kuhls
2014-06-13 23:02 ` [Buildroot] [PATCH 02/20 RFC] support/gen-manual-lists.py: remove unneeded arg in private function Yann E. MORIN
2014-06-15 19:35 ` Samuel Martin
2014-06-13 23:02 ` [Buildroot] [PATCH 03/20 RFC] support/gen-manual-lists.py: bail out early for legacy symbols Yann E. MORIN
2014-06-15 19:38 ` Samuel Martin
2014-06-13 23:02 ` [Buildroot] [PATCH 04/20 RFC] support/gen-manual-lists.py: rework generating the virtual package list Yann E. MORIN
2014-06-15 20:18 ` Samuel Martin
2014-06-15 21:06 ` Yann E. MORIN [this message]
2014-06-15 21:28 ` Samuel Martin
2014-06-13 23:02 ` [Buildroot] [PATCH 05/20 RFC] package/eudev: remove the prompt Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 06/20 RFC] package/systemd: remove prompt Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 07/20 RFC] package/libudev: new virtual package Yann E. MORIN
2014-07-11 20:15 ` Bernd Kuhls
2014-06-13 23:02 ` [Buildroot] [PATCH 08/20 RFC] package/eudev: is a provider for libudev Yann E. MORIN
2014-07-11 20:15 ` Bernd Kuhls
2014-06-13 23:02 ` [Buildroot] [PATCH 09/20 RFC] package/systemd: " Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 10/20 RFC] package/eudev: split udev/libudev Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 11/20 RFC] package/libatasmart: needs libudev, not a udev daemon Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 12/20 RFC] package/libcec: " Yann E. MORIN
2014-07-11 20:20 ` Bernd Kuhls
2014-06-13 23:02 ` [Buildroot] [PATCH 13/20 RFC] package/libdrm: can also use only libudev Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 14/20 RFC] package/libinput: needs libudev, not a udev daemon Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 15/20 RFC] package/libusb: " Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 16/20 RFC] package/mesa3d: depends on libudev, not udev Yann E. MORIN
2014-07-11 20:13 ` Bernd Kuhls
2014-06-13 23:02 ` [Buildroot] [PATCH 17/20 RFC] package/vlc: needs libudev, not a udev daemon Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 18/20 RFC] package/weston: " Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 19/20 RFC] package/xdriver_xf86-input-evdev: " Yann E. MORIN
2014-06-13 23:02 ` [Buildroot] [PATCH 20/20 RFC] package/xserver_xorg-server: " Yann E. MORIN
2014-06-14 8:01 ` [Buildroot] [PATCH 0/20 v2 RFC] Introduce libudev (branch yem/libudev) Thomas Petazzoni
2014-06-14 10:05 ` Yann E. MORIN
2014-06-14 10:08 ` 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=20140615210617.GE3568@free.fr \
--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.